2014-06-07 05:11:38 +00:00
|
|
|
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
|
2014-05-28 16:30:59 +00:00
|
|
|
|
2014-06-07 05:11:38 +00:00
|
|
|
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(-)
|
2014-05-28 16:30:59 +00:00
|
|
|
|
|
|
|
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
|
2014-06-07 05:11:38 +00:00
|
|
|
--
|
|
|
|
1.8.4.5
|
|
|
|
|