File 0049-95iscsi-Use-ip-ibft-for-ibft-autoconfiguration.patch of Package dracut.892

From a857924cc5eaf57b1f8c6ae469fefa4ee03cf6cf Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Tue, 27 May 2014 12:07:35 +0200
Subject: [PATCH] 95iscsi: Use 'ip=ibft' for ibft autoconfiguration

For iBFT autoconfiguration we should be setting 'ip=ibft'
instead of rd.neednet. This should instruct dracut to only
enable the iBFT interfaces and leave the rest alone.

References: bnc#879038

Signed-off-by: Hannes Reinecke <hare@suse.de>
---
 modules.d/95iscsi/module-setup.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
index 97e6e81..634c72e 100755
--- a/modules.d/95iscsi/module-setup.sh
+++ b/modules.d/95iscsi/module-setup.sh
@@ -41,12 +41,14 @@ installkernel() {
 
     install_ibft() {
         # When iBFT / iscsi_boot is detected:
-        # - mark network as mandatory
+        # - Use 'ip=ibft' to set up iBFT network interface
         # - specify firmware booting cmdline parameter
 
         for d in /sys/firmware/* ; do
             if [ -d ${d}/initiator ] ; then
-                echo "rd.neednet=1" >> "${initdir}/etc/cmdline.d/95iscsi.conf"
+                if [ ${d##*/} = "ibft" ] ; then
+                    echo "ip=ibft" >> "${initdir}/etc/cmdline.d/95iscsi.conf"
+                fi
                 echo "rd.iscsi.firmware=1" >> "${initdir}/etc/cmdline.d/95iscsi.conf"
             fi
         done
-- 
1.8.4.5