From 61401e264092fb40188f8af8413382035a2d1f44 Mon Sep 17 00:00:00 2001 From: Radek Vykydal Date: Thu, 30 Jan 2014 12:24:13 +0100 Subject: [PATCH] Don't activate default auto connections after switchroot (#1012511) Related: rhbz#1012511 Add NetworkManager config file turning default auto connections off. --- share/config_files/common/90-anaconda-no-auto-default.conf | 2 ++ share/runtime-postinstall.tmpl | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 share/config_files/common/90-anaconda-no-auto-default.conf diff --git a/share/config_files/common/90-anaconda-no-auto-default.conf b/share/config_files/common/90-anaconda-no-auto-default.conf new file mode 100644 index 00000000..06b53d81 --- /dev/null +++ b/share/config_files/common/90-anaconda-no-auto-default.conf @@ -0,0 +1,2 @@ +[main] +no-auto-default=* diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl index 259239d5..0be24e81 100644 --- a/share/runtime-postinstall.tmpl +++ b/share/runtime-postinstall.tmpl @@ -54,6 +54,8 @@ install ${configdir}/bash_history root/.bash_history install ${configdir}/profile root/.profile install ${configdir}/libuser.conf etc install ${configdir}/sysctl.conf etc/sysctl.d/anaconda.conf +mkdir etc/NetworkManager/conf.d +install ${configdir}/90-anaconda-no-auto-default.conf etc/NetworkManager/conf.d %if exists(root+"/etc/selinux/targeted"): install ${configdir}/selinux.config etc/selinux/config %endif