From 5eb109e193830a95d353593be0b69efe2e910cc4 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 14 Jan 2003 02:31:34 +0000 Subject: only do the second LVM check if we actually started RAID (#78483, ) --- rc.d/rc.sysinit | 9 ++++----- 1 file 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 -- cgit v1.2.1