[PATCH 2/2 rhel6-branch] Add ip= dracut parameter for iscsi nodes using default iface (#500273)

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

 



Related: rhbz#500273
---
 network.py |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/network.py b/network.py
index ac6a901..5d9e9b5 100644
--- a/network.py
+++ b/network.py
@@ -762,14 +762,12 @@ class Network:
     def dracutSetupArgs(self, networkStorageDevice):
         netargs=set()
 
-        if networkStorageDevice.nic:
-            # Storage bound to a specific nic (ie FCoE)
-            nic = networkStorageDevice.nic
-        else:
-            # Storage bound through ip, find out which interface leads to host
+        if networkStorageDevice.nic == "default":
             nic = ifaceForHostIP(networkStorageDevice.host_address)
             if not nic:
                 return ""
+        else:
+            nic = networkStorageDevice.nic
 
         if nic not in self.netdevices.keys():
             log.error('Unknown network interface: %s' % nic)
-- 
1.7.4

_______________________________________________
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