]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
deprecate "ip=ibft" kernel command line parameter
authorHarald Hoyer <harald@redhat.com>
Fri, 20 Jun 2014 12:27:09 +0000 (14:27 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 20 Jun 2014 12:27:09 +0000 (14:27 +0200)
rd.iscsi.ibft[=1] should be used instead.

Thing is, 'ip=ibft' is not really an ip setting, but rather a marker
that iBFT should be evaluated.

Also removed the trigger of the warning:
"Warning: Please supply bootdev argument for multiple ip= lines"

dracut.cmdline.7.asc
modules.d/40network/parse-ibft.sh
modules.d/40network/parse-ip-opts.sh

index 985285b4dc45ebc9b52c018c36dc06af424a6a6b..10550eef0d68841c5923239d1739b7902b371bba 100644 (file)
@@ -437,7 +437,7 @@ USB Android phone::
 * enp0s29u1u2
 =====================
 
-**ip=**__{dhcp|on|any|dhcp6|auto6|ibft}__::
+**ip=**__{dhcp|on|any|dhcp6|auto6}__::
     dhcp|on|any::: get ip from dhcp server from all interfaces. If root=dhcp,
     loop sequentially through all interfaces (eth0, eth1, ...) and use the first
     with a valid DHCP root-path.
@@ -446,8 +446,6 @@ USB Android phone::
 
     dhcp6::: IPv6 DHCP
 
-    ibft::: iBFT autoconfiguration
-
 **ip=**__<interface>__:__{dhcp|on|any|dhcp6|auto6}__[:[__<mtu>__][:__<macaddr>__]]::
     This parameter can be specified multiple times.
 +
@@ -661,6 +659,9 @@ will result in
 iscsistart -b --param node.session.timeo.replacement_timeout=30
 --
 
+**rd.iscsi.ibft** **rd.iscsi.ibft=1**:
+    Turn on iBFT autoconfiguration for the interfaces
+
 FCoE
 ~~~~
 **fcoe=**__<edd|interface|MAC>__:__{dcb|nodcb}__::
index 9776c755c4c7028c55e663c43061b0b0efb3d0ec..643313dc2e6d6c147967077123f2a996dd25ccdb 100755 (executable)
@@ -5,6 +5,6 @@
 command -v getarg >/dev/null          || . /lib/dracut-lib.sh
 command -v ibft_to_cmdline >/dev/null || . /lib/net-lib.sh
 
-# If ibft is requested, read ibft vals and write ip=XXX cmdline args
-[ "ibft" = "$(getarg ip=)" ] && ibft_to_cmdline
-
+if getargbool 0 rd.iscsi.ibft -d "ip=ibft"; then
+    ibft_to_cmdline
+fi
index 7e735741a4ef7d0674bfc55d1d436339be755d45..b029d0073987982c0199343a9121c01e100c0bae 100755 (executable)
@@ -25,6 +25,10 @@ fi
 if [ -z "$NEEDBOOTDEV" ] ; then
     count=0
     for p in $(getargs ip=); do
+        case "$p" in
+            ibft)
+                continue;;
+        esac
         count=$(( $count + 1 ))
     done
     [ $count -gt 1 ] && NEEDBOOTDEV=1