diff options
-rw-r--r-- | functions | 8 | ||||
-rwxr-xr-x | rc.sysinit | 7 |
2 files changed, 10 insertions, 5 deletions
@@ -372,6 +372,14 @@ fsck_reboot() { exit 0 } +mount_all() { + stat_busy "Mounting Local Filesystems" + run_hook sysinit_premount + mount -a -t $NETFS -O no_netdev + run_hook sysinit_postmount + stat_done +} + ############################### # Custom hooks in initscripts # ############################### @@ -216,7 +216,7 @@ if [[ -x $(type -P fsck) ]]; then fsck_reboot $? fi -stat_busy "Mounting Local Filesystems" +status "Remounting Root Read/Write" \ mount -n -o remount,rw / # don't touch /etc/mtab if it is a symlink to /proc/self/mounts @@ -228,11 +228,8 @@ stat_busy "Mounting Local Filesystems" cat /proc/mounts >| /etc/mtab fi - run_hook sysinit_premount # now mount all the local filesystems - mount -a -t $NETFS -O no_netdev - run_hook sysinit_postmount -stat_done +mount_all # enable monitoring of lvm2 groups, now that the filesystems are mounted rw if [[ $USELVM = [Yy][Ee][Ss] && -x $(type -P lvm) && -d /sys/block ]]; then |