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