summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2013-02-19 10:47:17 +0100
committerRadek Vykydal <rvykydal@redhat.com>2013-02-19 11:14:51 +0100
commit70e7941f4062ced0dc5d553148b70590e293cbdb (patch)
treeb48776a0ff3b9efaeddd8e246d934dd05db6e457
parent3b554cd360c6d32cc98fca7847deb89fc50439b2 (diff)
downloadanaconda-70e7941f4062ced0dc5d553148b70590e293cbdb.tar.gz
anaconda-70e7941f4062ced0dc5d553148b70590e293cbdb.tar.xz
anaconda-70e7941f4062ced0dc5d553148b70590e293cbdb.zip
Set ONBOOT=no for default autoconnections (#905918, #886090)
Autoconnections are set up by NM for devices not having ifcfg file (ie those not activated by dracut or not configured in kickstart). We want to default to "no" for this devices in RHEL. We even don't want to bring up the autoconnections in installer environment, but that is something for a separate bug.
-rw-r--r--pyanaconda/network.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index 456fd33f4..06136e1c2 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -314,6 +314,8 @@ def dumpMissingDefaultIfcfgs():
try:
nm.nm_update_settings_of_device(devname, 'connection', 'id', devname)
log.debug("network: dumping ifcfg file for default autoconnection on %s" % devname)
+ nm.nm_update_settings_of_device(devname, 'connection', 'autoconnect', False)
+ log.debug("network: setting autoconnect of %s to False" % devname)
except nm.DeviceSettingsNotFoundError as e:
log.debug("network: no ifcfg file for %s" % devname)
rv = True