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 > Crash Utility

 
 
LinkBack Thread Tools
 
Old 01-31-2012, 01:09 PM
David Cantrell
 
Default 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
 

Thread Tools




All times are GMT. The time now is 04:35 AM.

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