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

966cef
From 6d346727a1692cbff09f6298beda9b98050ea610 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