]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- fix $LVM2 variable fuckup (use is_no instead of is_yes)
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 27 Sep 2011 07:14:15 +0000 (07:14 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 27 Sep 2011 07:14:15 +0000 (07:14 +0000)
  (glen, you moron, have you considered a possibility that $LVM2 will land in
  sysconfig.rpmsave, thus making lvm dependant system non-bootable?)

svn-id: @12356

rc.d/rc.sysinit

index 39354c65507ee77b6d1ad89b7d73a435cde59c6b..76895623c344c0d9c121792a71a2f0c66a394b5e 100755 (executable)
@@ -598,11 +598,11 @@ if ! is_yes "$VSERVER"; then
        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
This page took 0.033511 seconds and 4 git commands to generate.