Followups to prevent NetworkManager from downing s390x interfaces.
These hacks prevent the configured network interfaces from going down
during installation. We can assume that s390x installs will always
have a network connection. There is no other way to start the
installer. Plus, this is all temporary stuff anyway that will change
when we rebase this branch.
def hasActiveNetDev():
+ if iutil.isS390():
+ return True
+
try:
bus = dbus.SystemBus()
nm = bus.get_object(isys.NM_SERVICE, isys.NM_MANAGER_PATH)
@@ -399,7 +402,8 @@ class Network:
# We can filter out storage devices only after
# we have device tree populated. So we do it before
# running nm-c-e and before writing ifcfg files to system.
- self.setNMControlledDevices(self.netdevices.keys() )
+ if not iutil.isS390():
+ self.setNMControlledDevices(self.netdevices.keys() )