From b6b168b4becf57fdb87eea8a7058f7164632d6c2 Mon Sep 17 00:00:00 2001 From: Vid Smole Date: Wed, 24 Jun 2026 12:12:34 +0200 Subject: [PATCH] Improve reliability of switching to netpland Before it sometimes happened that the interfaces would stay in the DOWN state --- subscripts/4Network/2Configure_networking.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/subscripts/4Network/2Configure_networking.sh b/subscripts/4Network/2Configure_networking.sh index cd05871..13cc624 100755 --- a/subscripts/4Network/2Configure_networking.sh +++ b/subscripts/4Network/2Configure_networking.sh @@ -228,21 +228,19 @@ else fi fi -# First ensure systemd-networkd is enabled and running echo "Enabling systemd-networkd ..." enable_systemd_networkd -# Then apply the netplan config +echo "Disabling NetworkManager ..." +disable_network_manager + echo "Copying netplan ..." sudo cp /tmp/01-netcfg.yaml /etc/netplan sudo chmod 600 /etc/netplan/01-netcfg.yaml + echo "Applying netplan ..." sudo netplan generate sudo netplan apply -# Finally, disable network manager -echo "Disabling NetworkManager ..." -disable_network_manager - echo "Done" exit 0