summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-10-02 04:01:20 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-10-02 04:01:20 -1000
commite19b0cd8078b52e3aeeec5ca22d80f14d49968b3 (patch)
treed0137ef6cf64e2efa0d447f5f8a919b07ab01a1d /network.py
parent47138291a6ee6e38aed60bee72c477df683f3c86 (diff)
downloadanaconda-e19b0cd8078b52e3aeeec5ca22d80f14d49968b3.tar.gz
anaconda-e19b0cd8078b52e3aeeec5ca22d80f14d49968b3.tar.xz
anaconda-e19b0cd8078b52e3aeeec5ca22d80f14d49968b3.zip
Support ksdevice=link when booting from boot.iso.
If the user supplies ksdevice=link, make sure we automatically select the first network device found that has an active link.
Diffstat (limited to 'network.py')
-rw-r--r--network.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/network.py b/network.py
index cdaa9938c..6a9c6d0f6 100644
--- a/network.py
+++ b/network.py
@@ -352,7 +352,9 @@ class Network:
self.netdevices[dev].set(('HWADDR', device['net.address']))
self.netdevices[dev].set(('DESC', device['description']))
- if ksdevice == dev:
+ if ksdevice == 'link' and isys.getLinkStatus(dev):
+ self.ksdevice = dev
+ elif ksdevice == dev:
self.ksdevice = dev
elif ksdevice.find(':') != -1:
if ksdevice.lower() == device['net.address'].lower():