summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-manager.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-02-04 07:33:38 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-02-05 01:42:32 +0100
commitea853de57dd84a2173cd60e2ecec1b8c978e04f3 (patch)
tree8c432ba4164ed2f2c4df6ab86f65be4b86e05a3e /src/network/networkd-manager.h
parentstat-util: introduce path_is_network_fs() (diff)
downloadsystemd-ea853de57dd84a2173cd60e2ecec1b8c978e04f3.tar.xz
systemd-ea853de57dd84a2173cd60e2ecec1b8c978e04f3.zip
network: enable KeepConfiguration= when running on network filesystem
Also, set KeepConfiguration=dhcp-on-stop by default when running in initrd. Fixes #21967.
Diffstat (limited to 'src/network/networkd-manager.h')
-rw-r--r--src/network/networkd-manager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-manager.h b/src/network/networkd-manager.h
index 36313589a3..86de529124 100644
--- a/src/network/networkd-manager.h
+++ b/src/network/networkd-manager.h
@@ -28,6 +28,8 @@ struct Manager {
Hashmap *polkit_registry;
int ethtool_fd;
+ KeepConfiguration keep_configuration;
+
bool test_mode;
bool enumerating;
bool dirty;