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

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