[projects/geninitrd] add noudevsync to vgchange to avoid lockups (it never completes)

glen glen at pld-linux.org
Tue Dec 24 11:51:35 CET 2013


commit 438d216122e5c25167fa46f51131d7ec17f1ceb2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Dec 24 12:51:32 2013 +0200

    add noudevsync to vgchange to avoid lockups (it never completes)

 mod-lvm.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/mod-lvm.sh b/mod-lvm.sh
index 781b2bb..72a2e71 100644
--- a/mod-lvm.sh
+++ b/mod-lvm.sh
@@ -237,12 +237,13 @@ initrd_gen_lvm() {
 			fi
 
 			export LVM_SYSTEM_DIR=/tmp
+
 			: 'Scanning for Volume Groups'
 			lvm.static vgscan --mknodes --ignorelockingfailure
 
 			: 'Activating Volume Groups'
 			for vol in $LVM_VGVOLUMES; do
-				lvm.static vgchange --ignorelockingfailure -a y $vol
+				lvm.static vgchange --ignorelockingfailure -a y $vol --noudevsync
 			done
 
 			: 'Extra call to make device nodes for non lvm2-initrd (dynamic lvm2)'
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/438d216122e5c25167fa46f51131d7ec17f1ceb2



More information about the pld-cvs-commit mailing list