wait-online: ignore -ENODATA on updating link information
When netdev is not created yet, the -ENODATA is returned.
This commit is contained in:
parent
710ce9e537
commit
b71d9a1296
|
@ -164,7 +164,7 @@ static int manager_process_link(sd_netlink *rtnl, sd_netlink_message *mm, void *
|
|||
log_link_warning_errno(l, r, "Failed to process RTNL link message, ignoring: %m");
|
||||
|
||||
r = link_update_monitor(l);
|
||||
if (r < 0)
|
||||
if (r < 0 && r != -ENODATA)
|
||||
log_link_warning_errno(l, r, "Failed to update link state, ignoring: %m");
|
||||
|
||||
break;
|
||||
|
@ -253,8 +253,8 @@ static int on_network_event(sd_event_source *s, int fd, uint32_t revents, void *
|
|||
|
||||
HASHMAP_FOREACH(l, m->links, i) {
|
||||
r = link_update_monitor(l);
|
||||
if (r < 0)
|
||||
log_link_warning_errno(l, r, "Failed to update monitor information: %m");
|
||||
if (r < 0 && r != -ENODATA)
|
||||
log_link_warning_errno(l, r, "Failed to update link state, ignoring: %m");
|
||||
}
|
||||
|
||||
if (manager_configured(m))
|
||||
|
|
Loading…
Reference in a new issue