This repository was archived by the owner on Jan 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
src/etc/one-context.d/loc-10-network.d Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ configure_network()
4141 # booting of current systems, so we execute netplan apply on the background
4242 case " ${NETCFG_NETPLAN_RENDERER} " in
4343 ' ' |networkd)
44- nohup netplan apply & > /dev/null &
44+ flock /var/run/one-context/netplan.lock nohup netplan apply & > /dev/null &
4545 ;;
4646 esac
4747}
@@ -56,14 +56,14 @@ start_network()
5656 netplan generate
5757 nm_symlink_run_connections
5858 service networking start
59- netplan apply
59+ flock /var/run/one-context/netplan.lock netplan apply
6060}
6161
6262reload_network ()
6363{
6464 netplan generate
6565 nm_symlink_run_connections
66- netplan apply
66+ flock /var/run/one-context/netplan.lock netplan apply
6767}
6868
6969#
You can’t perform that action at this time.
0 commit comments