X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=rc.d%2Frc.shutdown;h=02246c314a99fc7ec282fd22bab61ca846e8ad12;hb=9688f03ab823fc09f097de03b48bcbd46b7db6ff;hp=96d78646403b283aa9b9eebad6877a12ff5e673e;hpb=4404a269deb7ef3202edfe76ce89af0fb81c5bf2;p=rc-scripts.git diff --git a/rc.d/rc.shutdown b/rc.d/rc.shutdown index 96d7864..02246c3 100755 --- a/rc.d/rc.shutdown +++ b/rc.d/rc.shutdown @@ -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