diff --git a/src/etc/one-context.d/loc-10-network.d/netcfg-netplan b/src/etc/one-context.d/loc-10-network.d/netcfg-netplan index a2c0e94..15b924a 100644 --- a/src/etc/one-context.d/loc-10-network.d/netcfg-netplan +++ b/src/etc/one-context.d/loc-10-network.d/netcfg-netplan @@ -41,7 +41,7 @@ configure_network() # booting of current systems, so we execute netplan apply on the background case "${NETCFG_NETPLAN_RENDERER}" in ''|networkd) - nohup netplan apply &>/dev/null & + flock /var/run/one-context/netplan.lock nohup netplan apply &>/dev/null & ;; esac } @@ -56,14 +56,14 @@ start_network() netplan generate nm_symlink_run_connections service networking start - netplan apply + flock /var/run/one-context/netplan.lock netplan apply } reload_network() { netplan generate nm_symlink_run_connections - netplan apply + flock /var/run/one-context/netplan.lock netplan apply } #