1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-03 17:47:28 +03:00

network: do not enter initialized state when the interface is being processed by udevd

Fixes #30056.
This commit is contained in:
Yu Watanabe 2024-01-03 04:34:56 +09:00
parent f30a47c45e
commit 13176bfedc

View File

@ -1651,6 +1651,14 @@ static int link_check_initialized(Link *link) {
return 0;
}
r = device_is_processing(device);
if (r < 0)
return log_link_warning_errno(link, r, "Failed to determine whether the device is being processed: %m");
if (r > 0) {
log_link_debug(link, "Interface is being processed by udevd, pending initialization.");
return 0;
}
return link_initialized(link, device);
}