[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH rhel6-branch] Set value of device also for ks=bootif, missing BOOTIF case (#681803).



Related: rhbz#681803

Bad port from master. I can't believe how many mistakes I can make
in such a trivial patch.

---
 kickstart.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index bac256f..080eae9 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -603,8 +603,7 @@ class NetworkData(commands.network.RHEL6_NetworkData):
         else:
             if self.device.lower() == "ibft":
                 return
-            if self.device.lower() == "bootif":
-                if "BOOTIF" in flags.cmdline:
+            if self.device.lower() == "bootif" and "BOOTIF" in flags.cmdline:
                     # MAC address like 01-aa-bb-cc-dd-ee-ff
                     device = flags.cmdline["BOOTIF"][3:]
                     device = device.replace("-",":")
-- 
1.7.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]