Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Crash Utility (http://www.linux-archive.org/crash-utility/)
-   -   Select the same device for ksdevice=link in loader and stage2 (#760250) (http://www.linux-archive.org/crash-utility/627281-select-same-device-ksdevice-link-loader-stage2-760250-a.html)

David Cantrell 01-31-2012 01:09 PM

Select the same device for ksdevice=link in loader and stage2 (#760250)
 
On 01/31/2012 09:11 AM, Radek Vykydal wrote:

From: Jeff Bastian<jbastian@redhat.com>

In loader strverscmp(3) is used so the patch will cover vast majority of
cases (although e.g. eth9 would precede eth10 in loader, whereas eth10
would precede eth9 in stage 2 if there were more than 10 devcies having
link).

Resolves: rhbz#760250
---
network.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/network.py b/network.py
index df82152..15cf29c 100644
--- a/network.py
+++ b/network.py
@@ -353,7 +353,8 @@ class Network:
bootif_mac = None
if ksdevice == 'bootif' and flags.cmdline.get("BOOTIF"):
bootif_mac = flags.cmdline.get("BOOTIF")[3:].replace("-", ":").upper()
- for dev in self.netdevices:
+ # sort for ksdevice=link (to select the same device as in loader))
+ for dev in sorted(self.netdevices):
mac = self.netdevices[dev].get('HWADDR').upper()
if ksdevice == 'link' and isys.getLinkStatus(dev):
self.ksdevice = dev


Ack.

--
David Cantrell <dcantrell@redhat.com>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Westford, MA | EST5EDT

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


All times are GMT. The time now is 09:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.