Is systemd-networkd necessary on the Librem 5? (PureOS)

Today I randomly wanted to improve boot time for my Librem 5. So I checked via system-analyze for services that would delay the boot process. I noticed that NetworkManager and systemd-networkd were both enabled and both were waiting for network communication to succeed.

Is this correct or has this been added sometime in development for debugging? Because systemd-networkd-wait-online was listed as potentially running for two minutes. So I naturally disabled that. NetworkManager was still enabled anyway and it was making sure everything functions. I checked whether my changes caused any issue so far. But modem seems to work fine, WiFi as well. So why is systemd-networkd even enabled?

Maybe anyone here knows because I couldn’t find any strong information on this yet. But online I found that you could (without issue) disable systemd-networkd as a whole to disable the waiting service as well while NetworkManager was utilized. Also my intuition tells me there shouldn’t be two network manager running if one alone covers all needs.

The two things that I would check are:

  • Look at the (large number of) directories where config files for systemd-networkd may reside to see whether any config file is specifying something relevant.
  • Consider all the startup functionality that may depend on having the network up, both clients and servers. The point is that if a service depends on the systemd-networkd service then it doesn’t matter what the NetworkManager service does. The first service will still fail to start. (As an example, I would check whether automatic software updates are still happening, assuming that you even want that. As a further example, I would check the dependency for the ssh service, assuming that you even have the SSH server running.)

If the answer to both things is “none” then you should be OK.

At the end of the day, it is always down to having a valid backup, making the change … and seeing what breaks. :wink:

Same discovery here on my Librem 5 running PureOS 11 (crimson). Boot loses about 2 minutes, and the culprit is systemd-networkd-wait-online.service, which fails with:

Timeout occurred while waiting for network connectivity.

What I found on my phone:

  • Both systemd-networkd and systemd-networkd-wait-online are enabled. Their enable symlinks in /etc/systemd/system/ are dated April 6, 2025, the same date as /etc/systemd/network/ and /etc/systemd/network/99-dhcp.network, so this looks like it came with the base image.
  • systemd’s own preset (/lib/systemd/system-preset/90-systemd.preset) has enable systemd-networkd.service but also disable systemd-networkd-wait-online.service.
  • Even so, systemd-networkd.service has Also=systemd-networkd-wait-online.service, so enabling networkd pulls the wait service in as well.
  • NetworkManager manages my connections (usb0 and wlan0). systemd-networkd is running but manages no links at all.
  • networkd’s only config, 99-dhcp.network, matches only interfaces whose names start with e, and no package owns that file.
  • Nothing depends on systemd-networkd itself. The only service waiting on network-online.target is exim4, and that target still becomes active despite the failed wait, because NetworkManager-wait-online is also enabled.

So it looks like a stock default that doesn’t do anything useful on the phone, just a 2-minute stall on every boot.

Has anyone from Purism looked into this? Is there a reason systemd-networkd and its wait-online are enabled on the Librem 5 image, or is it safe to disable systemd-networkd-wait-online (and maybe systemd-networkd itself) by default?

What do you mean by this?

Yes, that service fails after 2 minutes for me too but I can start using the device well before that.

Be careful with that. If you use a USB ethernet dongle with your Librem 5 then the interface name does start with e (or at least it does for me).