]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- there's no point in trying to run vg{scan,change} if they're
authorTomasz Pala <gotar@pld-linux.org>
Mon, 14 Sep 2009 23:31:24 +0000 (23:31 +0000)
committerTomasz Pala <gotar@pld-linux.org>
Mon, 14 Sep 2009 23:31:24 +0000 (23:31 +0000)
  not present; so made them sufficient unless is_no "$EVMS_LVM"

svn-id: @10603

rc.d/rc.sysinit

index 9dcd7c0c5ff86f5efec2fd184d91461d98f56507..fcbfdca4bed04e75bc76300ecd4ac641562ca092 100755 (executable)
@@ -750,7 +750,7 @@ if ! is_yes "$VSERVER"; then
                        fi
                        # LVM on RAID (keep in sync with LVM setting few lines above)
                        if [ "$golvm" -eq "1" ]; then
-                               if is_yes "$EVMS_LVM" || [ -x /sbin/vgscan -a -x /sbin/vgchange ]; then
+                               if ! is_no "$EVMS_LVM" && [ -x /sbin/vgscan -a -x /sbin/vgchange ]; then
                                        run_cmd "Scanning for LVM volume groups (on RAID)" /sbin/vgscan $lvmignorelock
                                        run_cmd "Activating LVM volume groups (on RAID)" /sbin/vgchange -a y $lvmignorelock
                                        [ "$lvmversion" = "2" ] && /sbin/vgmknodes
This page took 0.267325 seconds and 4 git commands to generate.