[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 1/2] Write out NM_CONTROLLED=no for NICs used for FCoE
- From: Hans de Goede <hdegoede redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Cc:
- Subject: [PATCH 1/2] Write out NM_CONTROLLED=no for NICs used for FCoE
- Date: Fri, 3 Jul 2009 16:30:48 +0200
Write out NM_CONTROLLED=no for NICs used for FCoE, note that unlike with
iSCSI we do not blindly write out NM_CONTROLLED=no for all NICs, but just
for the NIC which is used for FCoE.
The iSCSI behaviour is undesirable, but the whole writing of NM_CONTROLLED=no
for iSCSI will go away as soon as NetworkManager is fixed to not down
devices when it takes over control, which should be fixed soon.
---
network.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/network.py b/network.py
index e3ce2c1..b4a8c89 100644
--- a/network.py
+++ b/network.py
@@ -587,8 +587,9 @@ class Network:
# FIXME: use device.host_address to only add "NM_CONTROLLED=no"
# for interfaces actually used enroute to the device
for d in anaconda.id.storage.devices:
- if rootdev.dependsOn(d) and isinstance(d,
- storage.devices.NetworkStorageDevice):
+ if rootdev.dependsOn(d) and \
+ isinstance(d, storage.devices.NetworkStorageDevice) and\
+ (not d.nic or d.nic == device):
f.write("NM_CONTROLLED=no\n")
break
--
1.6.2.2
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]