configs/*/airootfs/etc/systemd/network/: add RequiredForOnline=routable

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.
This commit is contained in:
nl6720 2023-12-09 12:31:58 +02:00
parent c96c2bef48
commit cb61daf8ea
No known key found for this signature in database
GPG key ID: 5CE88535E188D369
5 changed files with 15 additions and 0 deletions

View file

@ -14,6 +14,9 @@ Added
Changed
-------
- Set ``RequiredForOnline=routable`` in systemd-networkd configuration files to improve the chances that the network
really is *online* when ``network-online.target`` is reached.
Deprecated
----------

View file

@ -5,6 +5,9 @@
Name=en*
Name=eth*
[Link]
RequiredForOnline=routable
[Network]
DHCP=yes
MulticastDNS=yes

View file

@ -5,6 +5,9 @@
Name=en*
Name=eth*
[Link]
RequiredForOnline=routable
[Network]
DHCP=yes
MulticastDNS=yes

View file

@ -1,6 +1,9 @@
[Match]
Name=wl*
[Link]
RequiredForOnline=routable
[Network]
DHCP=yes
MulticastDNS=yes

View file

@ -1,6 +1,9 @@
[Match]
Name=ww*
[Link]
RequiredForOnline=routable
[Network]
DHCP=yes