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