networkd: log the initialization status of links
This commit is contained in:
parent
8f5675cc75
commit
3c4cb0645c
|
@ -1690,7 +1690,7 @@ int link_initialized(Link *link, struct udev_device *device) {
|
|||
if (device)
|
||||
link->udev_device = udev_device_ref(device);
|
||||
|
||||
log_debug_link(link, "link initialized");
|
||||
log_info_link(link, "udev initialized link");
|
||||
|
||||
r = network_get(link->manager, device, link->ifname, &link->mac, &network);
|
||||
if (r == -ENOENT) {
|
||||
|
@ -1861,9 +1861,11 @@ int link_add(Manager *m, sd_rtnl_message *message, Link **ret) {
|
|||
return -errno;
|
||||
}
|
||||
|
||||
if (udev_device_get_is_initialized(device) <= 0)
|
||||
if (udev_device_get_is_initialized(device) <= 0) {
|
||||
/* not yet ready */
|
||||
log_info_link(link, "udev initializing link...");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
r = link_initialized(link, device);
|
||||
|
|
Loading…
Reference in New Issue