Blame 0006-Installing-an-OS-with-VLAN-enabled-to-an-ISCSI-LUN-f.patch

Harald Hoyer e09d6b
From f4eb0d98048d51a0782d4a7137f699de174a65e4 Mon Sep 17 00:00:00 2001
Harald Hoyer e09d6b
From: "Praveen_Paladugu@Dell.com" <Praveen_Paladugu@Dell.com>
Harald Hoyer e09d6b
Date: Tue, 10 Jun 2014 10:35:16 -0500
Harald Hoyer e09d6b
Subject: [PATCH] Installing an OS with VLAN enabled to an ISCSI LUN (from
Harald Hoyer e09d6b
 ibft)
Harald Hoyer e09d6b
Harald Hoyer e09d6b
When installing OS to a VLAN enabled iscsi LUN (extracted from iBFT), "/tmp/net.{xyz}.has_ibft_config" is not being set properly.
Harald Hoyer e09d6b
Harald Hoyer e09d6b
Then anaconda installer requires 'BOOTPROTO="ibft"' populated in ifcfg of the vlan interface (ex: ibft0.20), for it to properly populate the kernel parameters post installation. The setting 'BOOTPROTO="ibft"' is populated by write-ifcfg.sh script only if the corresponding interface has a file /tmp/net.{xyz}.has_inft_config
Harald Hoyer e09d6b
Harald Hoyer e09d6b
To get around this issue, in ibft_to_cmdline() function in net-lib.sh file, I made the following changes to populate the has_ibft_config file for the vlan interface(ex: ibft0.20):
Harald Hoyer e09d6b
---
Harald Hoyer e09d6b
 modules.d/40network/net-lib.sh | 7 ++++++-
Harald Hoyer e09d6b
 1 file changed, 6 insertions(+), 1 deletion(-)
Harald Hoyer e09d6b
Harald Hoyer e09d6b
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
Harald Hoyer e09d6b
index a82f1a8..f8e1179 100755
Harald Hoyer e09d6b
--- a/modules.d/40network/net-lib.sh
Harald Hoyer e09d6b
+++ b/modules.d/40network/net-lib.sh
Harald Hoyer e09d6b
@@ -233,15 +233,20 @@ ibft_to_cmdline() {
Harald Hoyer e09d6b
                    case "$vlan" in
Harald Hoyer e09d6b
                        [0-9]*)
Harald Hoyer e09d6b
                            echo "vlan=$dev.$vlan:$dev"
Harald Hoyer e09d6b
+                           echo $mac > /tmp/net.${dev}.${vlan}.has_ibft_config
Harald Hoyer e09d6b
                            ;;
Harald Hoyer e09d6b
                        *)
Harald Hoyer e09d6b
                            echo "vlan=$vlan:$dev"
Harald Hoyer e09d6b
+                           echo $mac > /tmp/net.${vlan}.has_ibft_config
Harald Hoyer e09d6b
                            ;;
Harald Hoyer e09d6b
                    esac
Harald Hoyer e09d6b
+               else
Harald Hoyer e09d6b
+                   echo $mac > /tmp/net.${dev}.has_ibft_config
Harald Hoyer e09d6b
                fi
Harald Hoyer e09d6b
+            else
Harald Hoyer e09d6b
+                echo $mac > /tmp/net.${dev}.has_ibft_config
Harald Hoyer e09d6b
             fi
Harald Hoyer e09d6b
 
Harald Hoyer e09d6b
-            echo $mac > /tmp/net.${dev}.has_ibft_config
Harald Hoyer e09d6b
         done
Harald Hoyer e09d6b
     ) >> /etc/cmdline.d/40-ibft.conf
Harald Hoyer e09d6b
 }