From 288e5216bcd6786de9ad32bec48492ed76d39f88 Mon Sep 17 00:00:00 2001 From: Ian Goodacre Date: Sun, 16 Mar 2025 19:38:44 +0000 Subject: [PATCH] Allow NetworkManager and systemd-networkd While it is unusual to run both NetworkManager and systemd-networkd simultaneiously and doing so can cause startup problems, there is nothing inherently wrong with doing so: the services are not incompatible and some people run both, each managing different interfaces. The Armbian build framework enables one or the other but not both. Therefore, if both are enabled at first login, it is probably because the user has manually modified the image. In this case, trust that the user knows what they are doing and don't disable one of them. --- .../bsp/common/usr/lib/armbian/armbian-firstlogin | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/bsp/common/usr/lib/armbian/armbian-firstlogin b/packages/bsp/common/usr/lib/armbian/armbian-firstlogin index cd01f25c4a..9a7143cc5e 100755 --- a/packages/bsp/common/usr/lib/armbian/armbian-firstlogin +++ b/packages/bsp/common/usr/lib/armbian/armbian-firstlogin @@ -668,19 +668,6 @@ if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then # on network-online.target working correctly otherwise they will likely fail on boot # Same goes for systemd-networkd stack # https://github.com/armbian/build/issues/7896 - if - systemctl is-enabled --quiet NetworkManager && - systemctl is-enabled --quiet systemd-networkd - then - echo "Both NetworkManager and systemd-networkd services are enabled." - echo "This is known to cause problems with network startup." - echo "systemd-networkd will be disabled..." - sleep 30 # Give the user time to see the message - systemctl stop systemd-networkd - systemctl disable systemd-networkd - echo "systemd-networkd has been disabled." - fi - if systemctl is-enabled --quiet NetworkManager && ! systemctl is-enabled --quiet NetworkManager-wait-online