SVN: rc-scripts/trunk/rc.d/rc.sysinit

baggins baggins at pld-linux.org
Tue Sep 27 09:14:15 CEST 2011


Author: baggins
Date: Tue Sep 27 09:14:15 2011
New Revision: 12356

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
- fix $LVM2 variable fuckup (use is_no instead of is_yes)
  (glen, you moron, have you considered a possibility that $LVM2 will land in
  sysconfig.rpmsave, thus making lvm dependant system non-bootable?)


Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit	(original)
+++ rc-scripts/trunk/rc.d/rc.sysinit	Tue Sep 27 09:14:15 2011
@@ -598,11 +598,11 @@
 	fi
 
 	# LVM (keep in sync with LVM starting after RAID run!)
-	if is_yes "$LVM2" && [ -x /sbin/vgscan -a -x /sbin/vgchange ] || is_yes "$EVMS_LVM"; then
-		if is_yes "$LVM2"; then
-			lvmversion=2
-		else
+	if is_no "$LVM2" || [ -x /sbin/vgscan -a -x /sbin/vgchange ] || is_yes "$EVMS_LVM"; then
+		if is_no "$LVM2"; then
 			lvmversion=$(LC_ALL=C /sbin/vgchange --version 2>/dev/null | awk '/LVM version:/{if ($3 >= 2) print "2"}')
+		else
+			lvmversion=2
 		fi
 		if [ "$lvmversion" = "1" ] ; then
 			modprobe -s lvm-mod >/dev/null 2>&1


More information about the pld-cvs-commit mailing list