2014-06-07 05:11:38 +00:00
|
|
|
From 05c2671153524a3487a674fb8798556eaf8bdcaa Mon Sep 17 00:00:00 2001
|
2014-05-06 11:22:17 +00:00
|
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
|
|
Date: Mon, 5 May 2014 08:48:35 +0200
|
2014-06-07 05:11:38 +00:00
|
|
|
Subject: [PATCH] 95iscsi: Set correct iscsi_started value for iSCSI firmware
|
2014-05-06 11:22:17 +00:00
|
|
|
|
|
|
|
When iSCSI firmware booting is selected we should not rely on
|
|
|
|
'netroot' or 'iscsiroot' variables to be set.
|
|
|
|
|
|
|
|
References: bnc#873448
|
|
|
|
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
|
|
---
|
|
|
|
modules.d/95iscsi/parse-iscsiroot.sh | 8 ++++++--
|
|
|
|
1 file changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/modules.d/95iscsi/parse-iscsiroot.sh b/modules.d/95iscsi/parse-iscsiroot.sh
|
2014-06-07 05:11:38 +00:00
|
|
|
index 4be9d56..9651a20 100755
|
2014-05-06 11:22:17 +00:00
|
|
|
--- a/modules.d/95iscsi/parse-iscsiroot.sh
|
|
|
|
+++ b/modules.d/95iscsi/parse-iscsiroot.sh
|
2014-06-07 05:11:38 +00:00
|
|
|
@@ -92,8 +92,12 @@ if [ -n "$netroot" ] && [ "$root" != "/dev/root" ] && [ "$root" != "dhcp" ]; the
|
2014-05-06 11:22:17 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
-netroot_enc=$(str_replace "$netroot" '/' '\2f')
|
|
|
|
-echo "[ -f '/tmp/iscsistarted-$netroot_enc' ]" > $hookdir/initqueue/finished/iscsi_started.sh
|
|
|
|
+if [ -n "$iscsi_firmware" ] ; then
|
|
|
|
+ echo "[ -f '/tmp/iscsistarted-firmware' ]" > $hookdir/initqueue/finished/iscsi_started.sh
|
|
|
|
+else
|
|
|
|
+ netroot_enc=$(str_replace "$netroot" '/' '\2f')
|
|
|
|
+ echo "[ -f '/tmp/iscsistarted-$netroot_enc' ]" > $hookdir/initqueue/finished/iscsi_started.sh
|
|
|
|
+fi
|
|
|
|
|
|
|
|
# Done, all good!
|
|
|
|
rootok=1
|
|
|
|
--
|
2014-06-07 05:11:38 +00:00
|
|
|
1.8.4.5
|
2014-05-06 11:22:17 +00:00
|
|
|
|