]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
multipath: add "rd.multipath=0" option
authorHarald Hoyer <harald@redhat.com>
Thu, 20 Nov 2014 10:27:40 +0000 (11:27 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 20 Nov 2014 10:27:40 +0000 (11:27 +0100)
dracut.cmdline.7.asc
modules.d/90multipath/multipathd.sh

index 48356c7530e88acb90a31f4013fec4b309059a6a..8e4835d6b7701979f29a25fa65901c0a80636083 100644 (file)
@@ -379,6 +379,11 @@ DM RAID
    only activate the raid sets with the given UUID. This parameter can be
    specified multiple times.
 
+MULTIPATH
+~~~~~~~~~
+**rd.multipath=0**::
+   disable multipath detection
+
 FIPS
 ~~~~
 **rd.fips**::
@@ -952,6 +957,8 @@ rd_NO_MD:: rd.md=0
 
 rd_MD_UUID:: rd.md.uuid
 
+rd_NO_MULTIPATH: rd.multipath=0
+
 rd_NFS_DOMAIN:: rd.nfs.domain
 
 iscsi_initiator:: rd.iscsi.initiator
index 1e0e9074f9760ef3441e4c64e7872765155ad71c..2c2dcc85c2cd777dcd592dc58eb37e06bd174d95 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if [ -e /etc/multipath.conf ]; then
+if getargbool 1 rd.multipath -d -n rd_NO_MULTIPATH && [ -e /etc/multipath.conf ]; then
     modprobe dm-multipath
     multipathd -B || multipathd
     need_shutdown