aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-30 17:00:56 +0000
committerBill Nottingham <notting@redhat.com>2001-01-30 17:00:56 +0000
commit68219d8bf6d82f9a2a4c909f9214fdf5a2bf0f95 (patch)
treea4667af1bb1cb6118c7e1b63704882a9c83ff691
parent1d86729b17c914c80daff6e430d00933c658ad54 (diff)
downloadinitscripts-68219d8bf6d82f9a2a4c909f9214fdf5a2bf0f95.tar
initscripts-68219d8bf6d82f9a2a4c909f9214fdf5a2bf0f95.tar.gz
initscripts-68219d8bf6d82f9a2a4c909f9214fdf5a2bf0f95.tar.bz2
initscripts-68219d8bf6d82f9a2a4c909f9214fdf5a2bf0f95.tar.xz
initscripts-68219d8bf6d82f9a2a4c909f9214fdf5a2bf0f95.zip
fix raid start if it's all modular, and no initrd (#25291)
-rwxr-xr-xrc.d/rc.sysinit8
1 files changed, 6 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 434d1aad..6d16852c 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -395,7 +395,7 @@ if [ -f /etc/rc.modules ]; then
fi
# Add raid devices
-if [ -f /proc/mdstat -a -f /etc/raidtab ]; then
+if [ -f /etc/raidtab ]; then
echo -n $"Starting up RAID devices: "
rc=0
@@ -403,7 +403,11 @@ if [ -f /proc/mdstat -a -f /etc/raidtab ]; then
for i in `grep "^raiddev" /etc/raidtab | awk '{print $2}'`
do
RAIDDEV=`basename $i`
- RAIDSTAT=`grep "^$RAIDDEV : active" /proc/mdstat`
+ if [ -f /proc/mdstat ]; then
+ RAIDSTAT=`grep "^$RAIDDEV : active" /proc/mdstat`
+ else
+ RAIDSTAT=""
+ fi
if [ -z "$RAIDSTAT" ]; then
# Try raidstart first...if that fails then
# fall back to raidadd, raidrun. If that