Skip to content

Commit 288e521

Browse files
Ian Goodacreigorpecovnik
Ian Goodacre
authored andcommittedMar 18, 2025
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.
1 parent 5a4e9ba commit 288e521

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed
 

‎packages/bsp/common/usr/lib/armbian/armbian-firstlogin

-13
Original file line numberDiff line numberDiff line change
@@ -668,19 +668,6 @@ if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then
668668
# on network-online.target working correctly otherwise they will likely fail on boot
669669
# Same goes for systemd-networkd stack
670670
# https://github.com/armbian/build/issues/7896
671-
if
672-
systemctl is-enabled --quiet NetworkManager &&
673-
systemctl is-enabled --quiet systemd-networkd
674-
then
675-
echo "Both NetworkManager and systemd-networkd services are enabled."
676-
echo "This is known to cause problems with network startup."
677-
echo "systemd-networkd will be disabled..."
678-
sleep 30 # Give the user time to see the message
679-
systemctl stop systemd-networkd
680-
systemctl disable systemd-networkd
681-
echo "systemd-networkd has been disabled."
682-
fi
683-
684671
if
685672
systemctl is-enabled --quiet NetworkManager &&
686673
! systemctl is-enabled --quiet NetworkManager-wait-online

0 commit comments

Comments
 (0)
Failed to load comments.