]> TLD Linux GIT Repositories - rc-scripts.git/blobdiff - rc.d/rc.shutdown
- PLD merge: keep sys mounted, too (lvm tools use these)
[rc-scripts.git] / rc.d / rc.shutdown
index 96d78646403b283aa9b9eebad6877a12ff5e673e..02246c314a99fc7ec282fd22bab61ca846e8ad12 100755 (executable)
@@ -81,7 +81,7 @@ remaining=$(awk -v ig="^($UMOUNT_IGNORE)$" 'BEGIN { gsub(/[\t ]+/, "|", ig); } \
                && $2 !~ ig {print $2}' /proc/mounts)
 while [ -n "$remaining" -a "$retry" -gt 0 ]; do
        show "Unmounting file systems"; busy
-       ERRORS=$(umount -a $force -t noproc 2>&1); rc=$?
+       ERRORS=$(umount -a $force -t noproc,nosysfs 2>&1); rc=$?
 
        # we might had unmounted /usr, recheck $TPUT availability
        # but well. we need tput only for show() and busy() (ok() and fail() messages are already cached)
@@ -116,7 +116,7 @@ run_cmd "Remounting root filesystem in ro mode" mount -n -o remount,ro /
 if [ -x /sbin/vgchange ]; then
        lvmversion=$(LC_ALL=C /sbin/vgchange --version 2>/dev/null | awk '/LVM version:/{if ($3 >= 2) print "2"}')
        if [ "$lvmversion" = "2" ]; then
-               lvmsysinit="--sysinit"
+               lvmsysinit="--sysinit --noudevsync"
        else
                lvmsysinit=""
        fi