From ab1fdb56eae724010c5c1eb3542e3c54691597a4 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Tue, 21 May 2024 18:52:55 +0200 Subject: [PATCH] - 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) --- rc.d/rc.shutdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2