Blame SOURCES/0237-network-net-lib.sh-parse_iscsi_root-fix-c-p-bug.patch

712866
From 4f992675aeff74281ff72b6f7b764c3f5240dfc6 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Thu, 15 Jan 2015 10:33:50 +0100
712866
Subject: [PATCH] network/net-lib.sh:parse_iscsi_root(): fix c&p bug
712866
712866
fix iscsi_target_name for eui.* and naa.* target names
712866
712866
(cherry picked from commit 7cddd7b838941cc2608da8641a84031d696e18e0)
712866
---
712866
 modules.d/40network/net-lib.sh | 8 ++++----
712866
 1 file changed, 4 insertions(+), 4 deletions(-)
712866
712866
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
712866
index 82827b6..89b1101 100755
712866
--- a/modules.d/40network/net-lib.sh
712866
+++ b/modules.d/40network/net-lib.sh
712866
@@ -318,12 +318,12 @@ parse_iscsi_root()
712866
             v=${v%:iqn.*}:
712866
             ;;
712866
         *:eui.*)
712866
-            iscsi_target_name=iqn.${v##*:eui.}
712866
-            v=${v%:iqn.*}:
712866
+            iscsi_target_name=eui.${v##*:eui.}
712866
+            v=${v%:eui.*}:
712866
             ;;
712866
         *:naa.*)
712866
-            iscsi_target_name=iqn.${v##*:naa.}
712866
-            v=${v%:iqn.*}:
712866
+            iscsi_target_name=naa.${v##*:naa.}
712866
+            v=${v%:naa.*}:
712866
             ;;
712866
     esac
712866