aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-01-14 02:31:34 +0000
committerBill Nottingham <notting@redhat.com>2003-01-14 02:31:34 +0000
commit5eb109e193830a95d353593be0b69efe2e910cc4 (patch)
tree7ddf305732df33cf1ba151628e94bf6fb1bf5e1e /rc.d
parent6bebe683d902e6caef729d298817fbe4a6948c62 (diff)
downloadinitscripts-5eb109e193830a95d353593be0b69efe2e910cc4.tar
initscripts-5eb109e193830a95d353593be0b69efe2e910cc4.tar.gz
initscripts-5eb109e193830a95d353593be0b69efe2e910cc4.tar.bz2
initscripts-5eb109e193830a95d353593be0b69efe2e910cc4.tar.xz
initscripts-5eb109e193830a95d353593be0b69efe2e910cc4.zip
only do the second LVM check if we actually started RAID (#78483, <milan.kerslager@pslib.cz>)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit9
1 files changed, 4 insertions, 5 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 62d63c21..c6ef5d90 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -477,11 +477,10 @@ if [ -f /etc/raidtab -a -f /proc/mdstat ]; then
echo $"Automatic reboot in progress."
reboot -f
fi
-fi
-
-# LVM initialization, take 2 (it could be on top of RAID)
-if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then
- action $"Setting up Logical Volume Management:" /sbin/vgscan && /sbin/vgchange -a y
+ # LVM initialization, take 2 (it could be on top of RAID)
+ if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then
+ action $"Setting up Logical Volume Management:" /sbin/vgscan && /sbin/vgchange -a y
+ fi
fi
if [ -x /sbin/devlabel ]; then