aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit5
1 files changed, 3 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index d9d84047..028e4d31 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -424,7 +424,8 @@ if [ -f /etc/crypttab ]; then
fi
if [ -c /dev/mapper/control ]; then
- if [ -f /etc/multipath.conf -a -x /sbin/multipath.static ] ; then
+ if ! strstr "$cmdline" nompath && [ -f /etc/multipath.conf -a \
+ -x /sbin/multipath.static ]; then
modprobe dm-multipath > /dev/null 2>&1
/sbin/multipath.static -v 0
if [ -x /sbin/kpartx ]; then
@@ -432,7 +433,7 @@ if [ -c /dev/mapper/control ]; then
fi
fi
- if [ -x /sbin/dmraid ]; then
+ if ! strstr "$cmdline" nodmraid && [ -x /sbin/dmraid ]; then
modprobe dm-mirror >/dev/null 2>&1
for x in $(/sbin/dmraid -ay -i -p -t 2>/dev/null | \
egrep -iv "^no " | \