aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit7
1 files changed, 6 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index ac61126f..f7d849e1 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -249,7 +249,12 @@ if [ -c /dev/mapper/control ]; then
if [ -x /sbin/dmraid ]; then
modprobe dm-mirror >/dev/null 2>&1
- /sbin/dmraid -a y --ignorelocking
+ for x in $(dmraid -ay -t --ignorelocking | cut -d: -f1) ; do
+ dmname=$(resolve_dm_name $x)
+ if [ -z "$dmname" ]; then
+ /sbin/dmraid -a y --ignorelocking "$dmname"
+ fi
+ done
fi
if [ -x /sbin/lvm.static ]; then