From 0ce0e3470eb51242ac0bcb72f59b02d45660df16 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 22 Jan 2020 16:05:27 +0900 Subject: network: synchronously save state file when link is being reconfigured --- src/network/networkd-link-bus.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/network/networkd-link-bus.c') diff --git a/src/network/networkd-link-bus.c b/src/network/networkd-link-bus.c index 8f3b2e92f8..68889d858d 100644 --- a/src/network/networkd-link-bus.c +++ b/src/network/networkd-link-bus.c @@ -620,6 +620,12 @@ int bus_link_method_reconfigure(sd_bus_message *message, void *userdata, sd_bus_ if (r < 0) return r; + link_set_state(l, LINK_STATE_INITIALIZED); + r = link_save(l); + if (r < 0) + return r; + link_clean(l); + return sd_bus_reply_method_return(message, NULL); } -- cgit v1.2.3