[arch-projects] [netcfg] [PATCH 6/8] systemd: Clean the environment before loading the profile
Thomas Bächler
thomas at archlinux.org
Fri Oct 26 17:09:16 EDT 2012
Profiles can safely omit options, but options from other profiles may leak
this way, as netcfg does not take care of them for us.
---
systemd/netcfg-generator | 2 ++
1 file changed, 2 insertions(+)
diff --git a/systemd/netcfg-generator b/systemd/netcfg-generator
index e6c4068..6a625f4 100755
--- a/systemd/netcfg-generator
+++ b/systemd/netcfg-generator
@@ -27,6 +27,8 @@ EOF
}
list_profiles | while read p; do
+ # Clean environment before loading the profile
+ unset CONNECTION INTERFACE SLAVE_INTERFACES BRIDGE_INTERFACES VLAN_PHYS_DEV
load_profile "${p}" || continue
systemd_devices=()
extra_deps=()
--
1.8.0
More information about the arch-projects
mailing list