Set network configuration for root on partial offload iscsi devices (#819132)
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.
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list