diff options
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 8 |
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=$? |