Re: [PATCH rhel6-branch 2/3] Select the same device for ksdevice=link in loader and stage2 (#760250)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/31/2012 09:11 AM, Radek Vykydal wrote:
From: Jeff Bastian<jbastian@xxxxxxxxxx>

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@xxxxxxxxxx>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Westford, MA | EST5EDT

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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux