Ever since adding a couple of additional network interfaces to my workstation I have had a problem with reboots – the systemd-networkd-wait-online.service service “lingers” as it waits for all of the NICs to come online (and fails). Not especially problematic as everything works fine after the boot process has finished, but it slows down reboots (which are slow enough on this rather complicated desktop) and gives me an amber ✗ in my window manager’s status bar.
After spending some time re-jigging my storage (which consisted of far too many reboots), I finally decided to fix it.
Which basically consisted of making the relevant NICs “optional” in netplan. :-
enp9s0f1:
dhcp4: false
accept-ra: false
addresses: [172.16.76.0/24]
optional: true
This isn’t one of the NICs that I actually use – I added the NIC configuration in an earlier attempt at making things work … unsuccessfully. The key part is the “optional: true” bit.
And whilst you’re in there, replacing the gatewayv4 and gatewayv6 specifications with the “new style” is worth doing too :-
routes:
- to: default
via: 192.0.2.1
- to: default
via: 2001:db8:9c2:dead::1
(No those aren’t the real addresses)
This can be activated in the usual way – with a netplan apply (in my case a netplan try isn’t effective because of the use of bridges), although in this particular case a full reboot is called for.