FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 03-09-2011, 10:38 AM
Vratislav Podzimek
 
Default kickstart network --device=bootif value processing in stage2 fixed

---
pyanaconda/kickstart.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 5fe4cd8..9f9d1ad 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -601,6 +601,14 @@ class NetworkData(commands.network.F16_NetworkData):
else:
device = self.device

+ # If 'bootif' value of network --device is used use MAC address
+ # from cmdline, remove "01-" from the begining and edit value for further
+ # processing
+ if self.device.lower() == "bootif":
+ if "BOOTIF" in flags.cmdline:
+ device = flags.cmdline["BOOTIF"][3:]
+ device = device.replace("-",":")
+
# If we were given a network device name, grab the device object.
# If we were given a MAC address, resolve that to a device name
# and then grab the device object. Otherwise, errors.
--
1.7.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 07:42 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org