mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
networkd-wait-online: fix race
We must consider 'pending' links as if they may be managed by networkd, as this is the state we enter before deciding wether networkd should manage the link or not, so we better wait for this decision being made.
This commit is contained in:
@@ -77,7 +77,7 @@ bool manager_all_configured(Manager *m) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (streq(l->state, "configuring")) {
|
||||
if (STR_IN_SET(l->state, "configuring", "pending")) {
|
||||
log_debug("link %s is being processed by networkd",
|
||||
l->ifname);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user