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