]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: do not enter failed state if device's sysfs entry does not exist yet 13577/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Sep 2019 12:34:06 +0000 (21:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Sep 2019 12:34:06 +0000 (21:34 +0900)
src/network/networkd-link.c

index 46d55f64dc5b154a1362480e9663d39d8f5d36c8..5ae3cd963962febac8e6b699ce5e9f59ae2e6fcf 100644 (file)
@@ -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);