Blame SOURCES/0197-Installing-an-OS-with-VLAN-enabled-to-an-ISCSI-LUN-f.patch

18971c
From 7b8f2e7a7bdd412dd1bd776967462de8a51683b9 Mon Sep 17 00:00:00 2001
18971c
From: "Praveen_Paladugu@Dell.com" <Praveen_Paladugu@Dell.com>
18971c
Date: Tue, 10 Jun 2014 10:35:16 -0500
18971c
Subject: [PATCH] Installing an OS with VLAN enabled to an ISCSI LUN (from
18971c
 ibft)
18971c
18971c
When installing OS to a VLAN enabled iscsi LUN (extracted from iBFT), "/tmp/net.{xyz}.has_ibft_config" is not being set properly.
18971c
18971c
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
18971c
18971c
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):
18971c
18971c
(cherry picked from commit f4eb0d98048d51a0782d4a7137f699de174a65e4)
18971c
---
18971c
 modules.d/40network/net-lib.sh | 7 ++++++-
18971c
 1 file changed, 6 insertions(+), 1 deletion(-)
18971c
18971c
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
18971c
index d53e1a6e..90337f3c 100755
18971c
--- a/modules.d/40network/net-lib.sh
18971c
+++ b/modules.d/40network/net-lib.sh
18971c
@@ -233,15 +233,20 @@ ibft_to_cmdline() {
18971c
                    case "$vlan" in
18971c
                        [0-9]*)
18971c
                            echo "vlan=$dev.$vlan:$dev"
18971c
+                           echo $mac > /tmp/net.${dev}.${vlan}.has_ibft_config
18971c
                            ;;
18971c
                        *)
18971c
                            echo "vlan=$vlan:$dev"
18971c
+                           echo $mac > /tmp/net.${vlan}.has_ibft_config
18971c
                            ;;
18971c
                    esac
18971c
+               else
18971c
+                   echo $mac > /tmp/net.${dev}.has_ibft_config
18971c
                fi
18971c
+            else
18971c
+                echo $mac > /tmp/net.${dev}.has_ibft_config
18971c
             fi
18971c
 
18971c
-            echo $mac > /tmp/net.${dev}.has_ibft_config
18971c
         done
18971c
     ) >> /etc/cmdline.d/40-ibft.conf
18971c
 }