(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
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