Skip to content

Commit

Permalink
network: do not enter failed state if device's sysfs entry does not e…
Browse files Browse the repository at this point in the history
…xist yet
  • Loading branch information
yuwata committed Sep 17, 2019
1 parent b1b0b42 commit 4d59e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/network/networkd-link.c
Original file line number Diff line number Diff line change
Expand Up @@ -3116,8 +3116,8 @@ int link_add(Manager *m, sd_netlink_message *message, Link **ret) {
sprintf(ifindex_str, "n%d", link->ifindex);
r = sd_device_new_from_device_id(&device, ifindex_str);
if (r < 0) {
log_link_warning_errno(link, r, "Could not find device: %m");
goto failed;
log_link_warning_errno(link, r, "Could not find device, waiting for device initialization: %m");
return 0;
}

r = sd_device_get_is_initialized(device);
Expand Down

0 comments on commit 4d59e14

Please sign in to comment.