SVN: rc-scripts/trunk/rc.d/rc.sysinit
gotar
gotar at pld-linux.org
Tue Sep 15 01:31:24 CEST 2009
Author: gotar
Date: Tue Sep 15 01:31:24 2009
New Revision: 10603
Modified:
rc-scripts/trunk/rc.d/rc.sysinit
Log:
- there's no point in trying to run vg{scan,change} if they're
not present; so made them sufficient unless is_no "$EVMS_LVM"
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 15 01:31:24 2009
@@ -750,7 +750,7 @@
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
More information about the pld-cvs-commit
mailing list