diff options
author | Peter Jones <pjones@redhat.com> | 2006-10-11 20:30:35 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2006-10-11 20:30:35 +0000 |
commit | 5021802e2511b2321aa57c4f3195b09cd2aa8918 (patch) | |
tree | bbb53cb43215eba172655d04bc4ba277e14d6989 /rc.d | |
parent | 7c78dd614ed413b02ffd34c954ad956956d97c58 (diff) | |
download | initscripts-5021802e2511b2321aa57c4f3195b09cd2aa8918.tar initscripts-5021802e2511b2321aa57c4f3195b09cd2aa8918.tar.gz initscripts-5021802e2511b2321aa57c4f3195b09cd2aa8918.tar.bz2 initscripts-5021802e2511b2321aa57c4f3195b09cd2aa8918.tar.xz initscripts-5021802e2511b2321aa57c4f3195b09cd2aa8918.zip |
- Handle "nodmraid" and "nompath" command line options (#209377)
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 5 |
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 " | \ |