diff options
author | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-06-22 12:07:46 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-06-22 23:17:46 +0200 |
commit | ccc777c28b7b420e3ceaaf2616c24d3241871292 (patch) | |
tree | 971cf22b342498e391cb4ee768fdf4127644f790 | |
parent | 06b4ed7da352248c760e6a78273ffd4ca7f435d7 (diff) | |
download | initscripts-ccc777c28b7b420e3ceaaf2616c24d3241871292.tar.xz |
Move mount -a into functions to allow custom override (fsck on loop)
-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 |