mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
network: do not try to save link state file twice on boot
On enumeration, (that is, before manager_start() is called), enumerated links may already have the dirty flag. In that case, saving the state file in manager_start() should clear the flag.
This commit is contained in:
@@ -692,7 +692,7 @@ int manager_start(Manager *m) {
|
||||
log_warning_errno(r, "Failed to update state file %s, ignoring: %m", m->state_file);
|
||||
|
||||
HASHMAP_FOREACH(link, m->links_by_index) {
|
||||
r = link_save(link);
|
||||
r = link_save_and_clean(link);
|
||||
if (r < 0)
|
||||
log_link_warning_errno(link, r, "Failed to update link state file %s, ignoring: %m", link->state_file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user