]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network/net-lib.sh: Configure all iBFT interfaces
authorEugene S. Sobolev <sobolev@protei.ru>
Fri, 14 Feb 2020 08:49:06 +0000 (11:49 +0300)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 14 Feb 2020 09:42:34 +0000 (10:42 +0100)
Added boolean command line option rd.iscsi.mp

dracut.cmdline.7.asc
modules.d/40network/net-lib.sh

index 7683685614457d2e30421e2429a8733eb9c6be31..646f1f03c7570c47bf566c348884a9e258caec06 100644 (file)
@@ -786,6 +786,9 @@ iscsistart -b --param node.session.timeo.replacement_timeout=30
 **rd.iscsi.ibft** **rd.iscsi.ibft=1**:
     Turn on iBFT autoconfiguration for the interfaces
 
+**rd.iscsi.mp** **rd.iscsi.mp=1**:
+    Configure all iBFT interfaces, not only used for booting (multipath)
+
 **rd.iscsi.waitnet=0**:
     Turn off waiting for all interfaces to be up before trying to login to the iSCSI targets.
 
index e33ab5489a381391898fbd446e9639d5ac415379..16730e5b7da61fe864042e7e4969a1a1135658a8 100755 (executable)
@@ -251,8 +251,10 @@ ibft_to_cmdline() {
             [ -e ${iface}/flags ] && flags=$(read a < ${iface}/flags; echo $a)
             # Skip invalid interfaces
             (( $flags & 1 )) || continue
-            # Skip interfaces not used for booting
-            (( $flags & 2 )) || continue
+            # Skip interfaces not used for booting unless using multipath
+            if ! getargbool 0 rd.iscsi.mp ; then
+                (( $flags & 2 )) || continue
+            fi
             [ -e ${iface}/dhcp ] && dhcp=$(read a < ${iface}/dhcp; echo $a)
             [ -e ${iface}/origin ] && origin=$(read a < ${iface}/origin; echo $a)
             [ -e ${iface}/ip-addr ] && ip=$(read a < ${iface}/ip-addr; echo $a)