mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 17:06:39 +09:00
network: do not drop foreign configs based on the previous .network file
`link_drop_foreign_config()` will be called later in link_configure().
This commit is contained in:
@@ -1259,13 +1259,6 @@ static int link_reconfigure_impl(Link *link, bool force) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (!IN_SET(link->state, LINK_STATE_UNMANAGED, LINK_STATE_PENDING, LINK_STATE_INITIALIZED)) {
|
||||
log_link_debug(link, "State is %s, dropping foreign config", link_state_to_string(link->state));
|
||||
r = link_drop_foreign_config(link);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
||||
link_free_carrier_maps(link);
|
||||
link_free_engines(link);
|
||||
link->network = network_unref(link->network);
|
||||
|
||||
Reference in New Issue
Block a user