From: Marcin Krol Date: Tue, 21 May 2024 16:52:55 +0000 (+0200) Subject: - PLD merge: vgchange -a n can hang on shutdown waiting for udevd synchronization... X-Git-Tag: 0.5.4~13 X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=ab1fdb56eae724010c5c1eb3542e3c54691597a4;p=rc-scripts.git - PLD merge: vgchange -a n can hang on shutdown waiting for udevd synchronization. Don't do such synchronization since udevd is already killed at this moment anyway (https://listman.redhat.com/archives/linux-lvm/2021-September/msg00011.html) --- diff --git a/rc.d/rc.shutdown b/rc.d/rc.shutdown index 96d7864..8fab3cf 100755 --- a/rc.d/rc.shutdown +++ b/rc.d/rc.shutdown @@ -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