[PATCH rhel6-branch] 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

Identification of (partial) offload devices will be probably done in better
way in future (I plan to add it in scope of a bug for 6.4). For 6.3 at this
point I'd prefer to go with the ':' presence.

---
 network.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/network.py b/network.py
index 5d9e9b5..f9142ee 100644
--- a/network.py
+++ b/network.py
@@ -290,7 +290,7 @@ class NetworkDevice(IfcfgFile):
         for d in anaconda.id.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:
@@ -762,7 +762,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