From: Marcin Krol Date: Tue, 21 May 2024 16:54:13 +0000 (+0200) Subject: - PLD merge: keep sys mounted, too (lvm tools use these) X-Git-Tag: 0.5.4~12 X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=9688f03ab823fc09f097de03b48bcbd46b7db6ff;p=rc-scripts.git - PLD merge: keep sys mounted, too (lvm tools use these) --- diff --git a/rc.d/rc.shutdown b/rc.d/rc.shutdown index 8fab3cf..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)