aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-10-17 04:39:12 +0000
committerBill Nottingham <notting@redhat.com>2004-10-17 04:39:12 +0000
commitb380aae09c1d64020890d4593a0b1646693be118 (patch)
treef1627a11f42631cc8758e40f0ca54d0aaff8e1a7 /rc.d
parentf168918217b51512c9501d3f2c649efc93548e08 (diff)
downloadinitscripts-b380aae09c1d64020890d4593a0b1646693be118.tar
initscripts-b380aae09c1d64020890d4593a0b1646693be118.tar.gz
initscripts-b380aae09c1d64020890d4593a0b1646693be118.tar.bz2
initscripts-b380aae09c1d64020890d4593a0b1646693be118.tar.xz
initscripts-b380aae09c1d64020890d4593a0b1646693be118.zip
mdadm support
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit8
1 files changed, 8 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index b228863c..b3f7a26d 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -538,6 +538,10 @@ if [ -f /etc/rc.modules ]; then
fi
update_boot_stage RCraid
+if [ -f /etc/mdadm.conf ]; then
+ /sbin/mdadm -A -s
+fi
+
if [ -f /etc/raidtab ]; then
# Add raid devices
[ -f /proc/mdstat ] || modprobe md >/dev/null 2>&1
@@ -569,6 +573,10 @@ if [ -f /etc/raidtab ]; then
RESULT=0
RAIDDEV="$RAIDDEV(skipped)"
fi
+ if [ $RESULT -gt 0 -a -x /sbin/mdadm ]; then
+ /sbin/mdadm -Ac partitions $i -m dev
+ RESULT=$?
+ fi
if [ $RESULT -gt 0 -a -x /sbin/raidstart ]; then
/sbin/raidstart $i
RESULT=$?