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=()