Blame SOURCES/0347-iscsi-parse-iscsiroot.sh-correct-handling-if-netroot.patch

712866
From 7fd112f20e63def6d274ab445b5eb82138348901 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Thu, 17 Sep 2015 15:41:12 +0200
712866
Subject: [PATCH] iscsi/parse-iscsiroot.sh: correct handling if netroot isn't
712866
 set
712866
712866
corrects bfe65f913a4bc6bc5fdb7aa75234c229a2ceef8f
712866
---
712866
 modules.d/95iscsi/parse-iscsiroot.sh | 4 +++-
712866
 1 file changed, 3 insertions(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/95iscsi/parse-iscsiroot.sh b/modules.d/95iscsi/parse-iscsiroot.sh
5c6c2a
index f19147f6..3d74ff2e 100755
712866
--- a/modules.d/95iscsi/parse-iscsiroot.sh
712866
+++ b/modules.d/95iscsi/parse-iscsiroot.sh
712866
@@ -84,7 +84,9 @@ if [ -n "$iscsi_firmware" ]; then
712866
     initqueue --unique --onetime --settled /sbin/iscsiroot online "iscsi:" "'$NEWROOT'"
712866
 fi
712866
 
712866
-[ -z "$netroot" ] || [ "${netroot%%:*}" = "iscsi" ] || return 1
712866
+if [ -z "$netroot" ] || ! [ "${netroot%%:*}" = "iscsi" ]; then
712866
+    return 1
712866
+fi
712866
 
712866
 initqueue --unique --onetime --timeout /sbin/iscsiroot timeout "$netroot" "$NEWROOT"
712866