aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit8
1 files changed, 5 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 4155c9f2..f0dc35d7 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -362,9 +362,11 @@ fi
if ! strstr "$cmdline" nodmraid && [ -x /sbin/dmraid ]; then
modprobe dm-mirror >/dev/null 2>&1
- for dmname in $(/sbin/dmraid -ay -i -p -t 2>/dev/null | \
- egrep -iv "^no " | \
- awk -F ':' '{ print $1 }') ; do
+ for dmname in $(/sbin/dmraid -s -c -i); do
+ if [[ "$dmname" =~ '^isw_.*' ]] && \
+ ! strstr "$cmdline" noiswmd; then
+ continue
+ fi
/sbin/dmraid -ay -i --rm_partitions -p "$dmname" >/dev/null 2>&1
/sbin/kpartx -a -p p "/dev/mapper/$dmname"
done