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

[PATCH rhel6-branch] Ignore --device=ibft in stage 2 kickstart handling (#638131)



Stage 2 can't handle "ibft" value, it is used meaningfuly only
in loader kickstart where the device would also be activated.

Related: rhbz#638131

Port of modified vpodzimek's patch for master. Tested.
---
 kickstart.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index b7ed5c4..28abcd7 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -574,6 +574,9 @@ class NetworkData(commands.network.RHEL6_NetworkData):
             log.info("unspecified network --device in kickstart, using %s (%s)" %
                      (device, msg))
         else:
+            if self.device.lower() == "ibft":
+                log.debug("--device=ibft is ignored in stage 2 kickstart")
+                return
             device = self.device
 
         # If we were given a network device name, grab the device object.
-- 
1.7.4


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