While setting up a new network server for my volunteer work, the server with 1+4 ethernet port machine waits for network up and running. This is very annoying.
All I want is to make this timeout shorter. After sniffing around, I spotted the thing that waits.
/lib/systemd/system/systemd-networkd-wait-online.service
has
[Service]
Type=oneshot
ExecStart=/lib/systemd/systemd-networkd-wait-online -q --timeout=10
RemainAfterExit=yes
Add -q
and --timeout=10
. It still waits but only 10 seconds, not 120.
Do sudo systemctl daemon-reload
which I think not needed, but does no harm either, and reboot.