Browse Source

network/net-lib.sh: Configure all iBFT interfaces

Added boolean command line option rd.iscsi.mp
master
Eugene S. Sobolev 5 years ago committed by Harald Hoyer
parent
commit
c7ee6b3dbb
  1. 3
      dracut.cmdline.7.asc
  2. 4
      modules.d/40network/net-lib.sh

3
dracut.cmdline.7.asc

@ -786,6 +786,9 @@ iscsistart -b --param node.session.timeo.replacement_timeout=30 @@ -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.


4
modules.d/40network/net-lib.sh

@ -251,8 +251,10 @@ ibft_to_cmdline() { @@ -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
# 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)

Loading…
Cancel
Save