B #-: Synchronize inital & following neplan apply

neplan-race
Jan Orel 2 years ago
parent 3de2c1f8d3
commit aa639b1fd2
No known key found for this signature in database
GPG Key ID: C7B901ABAF4CFF1B

@ -41,7 +41,7 @@ configure_network()
# booting of current systems, so we execute netplan apply on the background # booting of current systems, so we execute netplan apply on the background
case "${NETCFG_NETPLAN_RENDERER}" in case "${NETCFG_NETPLAN_RENDERER}" in
''|networkd) ''|networkd)
nohup netplan apply &>/dev/null & flock /var/run/one-context/netplan.lock nohup netplan apply &>/dev/null &
;; ;;
esac esac
} }
@ -56,14 +56,14 @@ start_network()
netplan generate netplan generate
nm_symlink_run_connections nm_symlink_run_connections
service networking start service networking start
netplan apply flock /var/run/one-context/netplan.lock netplan apply
} }
reload_network() reload_network()
{ {
netplan generate netplan generate
nm_symlink_run_connections nm_symlink_run_connections
netplan apply flock /var/run/one-context/netplan.lock netplan apply
} }
# #

Loading…
Cancel
Save