The officially official Devuan Forum!

You are not logged in.

#1 2024-12-21 21:19:02

francesco
Member
Registered: 2024-12-21
Posts: 3  

Which runlevel for umountfs and umountroot (via sysv-rc-conf)?

Hello everybody, i'll get straigth to the point: i need umountfs and umountroot unmounting the filesystem at shutdown and reboot, so i've setted them both on 0 and 6, but it doesn't work, since at every boot the system recovers the journal. Please can someone help me? Many thanks!

Offline

#2 2024-12-21 21:50:16

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 653  

Re: Which runlevel for umountfs and umountroot (via sysv-rc-conf)?

Hi, Not sure if this will help, but on my open-rc system both of those files have no start and stop is 0 and 6

/etc/init.d/umountroot

#! /bin/sh
### BEGIN INIT INFO
# Provides:          umountroot
# Required-Start:
# Required-Stop:
# Should-Stop:       halt reboot kexec
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Mount the root and /usr filesystems read-only.
### END INIT INFO

---snip---

added /etc/init.d/umountnfs.sh

#! /bin/sh
### BEGIN INIT INFO
# Provides:          umountnfs
# Required-Start:
# Required-Stop:     umountfs
# Should-Stop:       $network $portmap nfs-common
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Unmount all network filesystems except the root fs.
# Description:       Also unmounts all virtual filesystems (proc,
#                    devpts, usbfs, sysfs) that are not mounted at the
#                    top level.
### END INIT INFO

I added the header for the files because they have different deps... (should stop)

Last edited by GlennW (2024-12-21 21:53:12)


pic from 1993, new guitar day.

Offline

#3 Yesterday 11:39:56

francesco
Member
Registered: 2024-12-21
Posts: 3  

Re: Which runlevel for umountfs and umountroot (via sysv-rc-conf)?

Hello again, i've setted 0 and 6 on "Default-Stop" but i still doesn't unmount the filesystems:
                               
#! /bin/sh
### BEGIN INIT INFO
# Provides:          umountfs
# Required-Start:
# Required-Stop:     umountroot
# Default-Start:        0 6
# Default-Stop:
# Short-Description: Turn off swap and unmount all local file systems.
# Description:
### END INIT INFO

#! /bin/sh
### BEGIN INIT INFO
# Provides:          umountroot
# Required-Start:
# Required-Stop:
# Should-Stop:       halt reboot kexec
# Default-Start:      0 6
# Default-Stop:
# Short-Description: Mount the root and /usr filesystems read-only.
### END INIT INFO

#! /bin/sh
### BEGIN INIT INFO
# Provides:          umountnfs
# Required-Start:
# Required-Stop:     umountfs
# Should-Stop:       $network $portmap nfs-common
# Default-Start:      0 6
# Default-Stop:
# Short-Description: Unmount all network filesystems except the root fs.
# Description:       Also unmounts all virtual filesystems (proc,
#                    devpts, usbfs, sysfs) that are not mounted at the
#                    top level.
### END INIT INFO

Offline

#4 Yesterday 11:40:30

francesco
Member
Registered: 2024-12-21
Posts: 3  

Re: Which runlevel for umountfs and umountroot (via sysv-rc-conf)?

Sorry, i meant "Default-Start".

Offline

Board footer