mirror of
https://github.com/systemd/systemd.git
synced 2024-12-28 11:21:59 +03:00
networkd: do not drop config for pending interfaces (#4187)
While an interface is still being processed by udev, it is in state "pending", instead of "unmanaged". We must not flush device configuration then. Further fixes commit3104883ddc
after commitc436d55397
. Fixes #4186
This commit is contained in:
parent
eb93312810
commit
f258e94843
@ -2995,7 +2995,8 @@ static int link_carrier_lost(Link *link) {
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
if (link->state != LINK_STATE_UNMANAGED) {
|
if (!IN_SET(link->state, LINK_STATE_UNMANAGED, LINK_STATE_PENDING)) {
|
||||||
|
log_link_debug(link, "State is %s, dropping config", link_state_to_string(link->state));
|
||||||
r = link_drop_foreign_config(link);
|
r = link_drop_foreign_config(link);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
Loading…
Reference in New Issue
Block a user