aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ab66a589..378129dd 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -363,7 +363,12 @@ fi
if ! strstr "$cmdline" nodmraid && [ -x /sbin/dmraid ]; then
modprobe dm-mirror >/dev/null 2>&1
- /sbin/dmraid -ay -i --rm_partitions >/dev/null 2>&1
+ for dmname in $(/sbin/dmraid -ay -i -p -t 2>/dev/null | \
+ egrep -iv "^no " | \
+ awk -F ':' '{ print $1 }') ; do
+ /sbin/dmraid -ay -i --rm_partitions -p "$dmname" >/dev/null 2>&1
+ /sbin/kpartx -a -p p "/dev/mapper/$dmname"
+ done
fi
if [ -x /sbin/lvm ]; then