[PATCH rhel7-alpha2-branch 14/16] Set network configuration for root on partial offload iscsi devices (#819132)

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

 



Set NM_CONTROLLED to "no" and pass ip= and ifname= parameters to dracut.

Resolves: rhbz#819132
---
 pyanaconda/network.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index 8271257..2b8ca7d 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -354,7 +354,7 @@ class NetworkDevice(IfcfgFile):
         for d in anaconda.storage.devices:
             if (isinstance(d, storage.devices.iScsiDiskDevice) and
                 rootdev.dependsOn(d)):
-                if d.nic == "default":
+                if d.nic == "default" or ":" in d.nic:
                     if self.iface == ifaceForHostIP(d.host_address):
                         return True
                 elif d.nic == self.iface:
@@ -915,7 +915,7 @@ class Network:
     def dracutSetupArgs(self, networkStorageDevice):
         netargs=set()
 
-        if networkStorageDevice.nic == "default":
+        if networkStorageDevice.nic == "default" or ":" in networkStorageDevice.nic:
             nic = ifaceForHostIP(networkStorageDevice.host_address)
             if not nic:
                 return ""
-- 
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