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 > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 02-14-2012, 12:08 PM
Radek Vykydal
 
Default Add support for network --device=link in stage2 kickstart (#790332)

Without it we hit KickstartValueError in stage 2.

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

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 27cf6d1..4a968f9 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -688,7 +688,15 @@ class NetworkData(commands.network.F16_NetworkData):
else:
if self.device.lower() == "ibft":
return
- if self.device.lower() == "bootif":
+ if self.device.lower() == "link":
+ for dev in sorted(devices):
+ if isys.getLinkStatus(dev):
+ device = dev
+ break
+ else:
+ raise KickstartValueError, formatErrorMsg(self.lineno, msg="No device with link found")
+
+ elif self.device.lower() == "bootif":
if "BOOTIF" in flags.cmdline:
# MAC address like 01-aa-bb-cc-dd-ee-ff
device = flags.cmdline["BOOTIF"][3:]
--
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 10:42 PM.

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