Blame SOURCES/0070-iscsi-iscsiroot.sh-do-not-trust-iscsistart-return-va.patch

a56a5e
From 7faae1264db2d015135985c52bc2b8a2ae0636eb Mon Sep 17 00:00:00 2001
966cef
From: Harald Hoyer <harald@redhat.com>
966cef
Date: Tue, 7 Jan 2014 16:40:50 +0100
966cef
Subject: [PATCH] iscsi/iscsiroot.sh: do not trust iscsistart return value
966cef
966cef
---
966cef
 modules.d/95iscsi/iscsiroot.sh | 3 ++-
966cef
 1 file changed, 2 insertions(+), 1 deletion(-)
966cef
966cef
diff --git a/modules.d/95iscsi/iscsiroot.sh b/modules.d/95iscsi/iscsiroot.sh
966cef
index ef090f7..abdea5c 100755
966cef
--- a/modules.d/95iscsi/iscsiroot.sh
966cef
+++ b/modules.d/95iscsi/iscsiroot.sh
966cef
@@ -44,7 +44,8 @@ if getargbool 0 rd.iscsi.firmware -d -y iscsi_firmware ; then
966cef
 	iscsi_param="$iscsi_param --param $p"
966cef
     done
966cef
 
966cef
-    if ! [ -e /tmp/iscsistarted-firmware ] && iscsistart -b $iscsi_param; then
966cef
+    if ! [ -e /tmp/iscsistarted-firmware ]; then
966cef
+        iscsistart -b $iscsi_param
966cef
         echo 'started' > "/tmp/iscsistarted-iscsi"
966cef
         echo 'started' > "/tmp/iscsistarted-firmware"
966cef
         need_shutdown