cb61daf8ea
By default systemd-networkd-wait-online.service considers a network connection to be "online" when it has reached the "degraded" state (see networkctl(1) for the definitions). Since "degraded" does not ensure there's a routable address, let's change the connection's requirement to "routable" instead. This gives a better chance that the network really is online when network-online.target is reached.
14 lines
319 B
SYSTEMD
14 lines
319 B
SYSTEMD
[Match]
|
|
# Matching with "Type=ether" causes issues with containers because it also matches virtual Ethernet interfaces (veth*).
|
|
# See https://bugs.archlinux.org/task/70892
|
|
# Instead match by globbing the network interface name.
|
|
Name=en*
|
|
Name=eth*
|
|
|
|
[Link]
|
|
RequiredForOnline=routable
|
|
|
|
[Network]
|
|
DHCP=yes
|
|
MulticastDNS=yes
|