mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
wait-online: by default not all interface need to be online
Fixes an issue caused by ab3aed4a03
(v253).
By default, all managed interface need to be configured, and at least
one interface need to be online. Hence, offline interface should be ignored.
Fixes #29506.
This commit is contained in:
parent
0119370cbb
commit
6f412c00cf
@ -174,7 +174,9 @@ bool manager_configured(Manager *m) {
|
||||
}
|
||||
|
||||
r = manager_link_is_online(m, l, /* state_range = */ NULL);
|
||||
if (r < 0 && !m->any) /* Unlike the above loop, unmanaged interfaces are ignored here. */
|
||||
/* Unlike the above loop, unmanaged interfaces are ignored here. Also, Configured but offline
|
||||
* interfaces are ignored. See issue #29506. */
|
||||
if (r < 0 && r != -EADDRNOTAVAIL && !m->any)
|
||||
return false;
|
||||
if (r > 0) {
|
||||
if (m->any)
|
||||
|
Loading…
Reference in New Issue
Block a user