[arch-projects] Patch for FS#23889

Ian-Xue Li da.mi.spirit at gmail.com
Fri Apr 29 22:58:17 EDT 2011


Hi,
sttaching a possible patch for FS#23889.

https://bugs.archlinux.org/task/23889

Regards.

-- 
Li Ian-Xue
http://b4283.ath.cx
-------------- next part --------------
--- rc.shutdown.org	2011-04-29 21:54:49.606622481 +0800
+++ rc.shutdown	2011-04-29 21:56:25.669952416 +0800
@@ -60,6 +60,11 @@
 # Kill non-root encrypted partition mappings
 if [[ -f /etc/crypttab && -n $CS ]] && /bin/grep -q ^[^#] /etc/crypttab; then
 	stat_busy "Deactivating encrypted volumes:"
+	# Maybe someone has LVM on an encrypted block device
+	# executing an extra vgchange is errorless
+	if [[ $USELVM =~ yes|YES ]]; then
+		/sbin/vgchange --sysinit -a n >/dev/null 2>&1
+	fi
 	do_lock() {
 		stat_append "${1}.."
 		if $CS remove "$1" >/dev/null 2>&1; then


More information about the arch-projects mailing list