I’m getting a “timeout” (if that’s the correct word) when I boot or reboot my Ubuntu Server (latest) I’m configuring.
Said timeout appears to relate to the systemd-networkd-wait-online and I found an article that talks about it (I can’t post links unfortunately) which told me to:
Check which one is active using the systemctl command.
Disable said service.
modify its unit file with systemctl edit.
I followed the article through with no luck, nothing seems to stop the timeout… oddly, when I use the command “systemctl edit systemd-networkd-wait-online.service” the system doesn’t seem to retain my changes which might account for my inability to stop the timeout i.e. I use that command and then if I use it again (immediately) I can’t see any of the changes I made.
This isn’t a critical error, more irritating on account of it ends after a couple of minutes but any ideas would be of interest
If you are on Ubuntu 24.04 LTS systemd-networkd-wait-online.service waits until network links are “online,” and by default it waits for all links known to systemd-networkd. If one NIC is unplugged or slow to get DHCP, boot stalls for up to 120 seconds.
You can see which “wait-online” unit exists with:
systemctl status systemd-networkd-wait-online.service || true
systemctl status NetworkManager-wait-online.service || true
The best approach is probably to make wait-online succeed faster. Create a drop-in that waits for any interface or a specific one, with a short timeout.