aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-05-03 21:48:35 +0000
committerBill Nottingham <notting@redhat.com>2004-05-03 21:48:35 +0000
commit741bc6475f1be20ebb490048a286edc778c887fd (patch)
tree2b204ad27fc1ceda8cbbb318e2814577018981f1 /rc.d/rc.sysinit
parentb0ed17e48b58d1fe4f2ee518f9854847d20c0fdc (diff)
downloadinitscripts-741bc6475f1be20ebb490048a286edc778c887fd.tar
initscripts-741bc6475f1be20ebb490048a286edc778c887fd.tar.gz
initscripts-741bc6475f1be20ebb490048a286edc778c887fd.tar.bz2
initscripts-741bc6475f1be20ebb490048a286edc778c887fd.tar.xz
initscripts-741bc6475f1be20ebb490048a286edc778c887fd.zip
get rid of LVM error when no volumes are defined (#121197)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 9d735fdf..5c8f8c01 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -384,7 +384,9 @@ if [ -x /sbin/lvm.static ]; then
echo "mkdmnod" | /sbin/nash --quiet >/dev/null 2>&1
[ -n "$SELINUX" ] && restorecon /dev/mapper/control
if [ -e /dev/mapper/control -a -x /sbin/lvm.static ]; then
- action $"Setting up Logical Volume Management:" /sbin/lvm.static vgscan && /sbin/lvm.static vgchange -a y && /sbin/lvm vgmknodes
+ if /sbin/lvm.static vgscan > /dev/null 2>&1 ; then
+ action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y && /sbin/lvm vgmknodes
+ fi
fi
fi
# LVM initialization