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:
Tom Gundersen
2015-07-29 01:34:35 +02:00
parent 0a05b6b760
commit 79ac8ba973

View File

@@ -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;