[PATCH rhel7] Set ONBOOT=no for default autoconnections (#905918, #886090)

Radek Vykydal rvykydal at redhat.com
Wed Feb 13 10:23:19 UTC 2013


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't don't want to bring up the autoconnections in installer
environment, but that is something for a separate bug.
---
 pyanaconda/network.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index 2bf7832..dc29c1b1 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -483,6 +483,7 @@ def createMissingDefaultIfcfgs():
             # if so, write its configuration with name changed to iface
             if con_hwaddr.upper() == hwaddr.upper():
                 setting['connection']['id'] = interface
+                setting['connection']['autoconnect'] = False
                 con.Update(setting)
                 rv = True
                 log.debug("network: dumped ifcfg file for default autoconnection on %s" % interface)
-- 
1.7.11.7



More information about the anaconda-patches mailing list