diff options
author | Tom Gundersen <teg@jklm.no> | 2014-06-03 18:57:47 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-06-03 18:58:00 +0200 |
commit | 85b5673b337048fa881a5afb1d00d1a7b95950fb (patch) | |
tree | cad0470eb05466f590b6210a90950015a833ebbc /src/network/networkd-link.c | |
parent | e918a1b5a94f270186dca59156354acd2a596494 (diff) |
networkd: split runtime config dir from state dir
Configuration will be in
root:root /run/systemd/network
and state will be in
systemd-network:systemd-network /run/systemd/netif
This matches what we do for logind's seat/session state.
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 6677b949c4..6e6fb8393e 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -75,12 +75,12 @@ static int link_new(Manager *manager, sd_rtnl_message *message, Link **ret) { if (!link->ifname) return -ENOMEM; - r = asprintf(&link->state_file, "/run/systemd/network/links/%"PRIu64, + r = asprintf(&link->state_file, "/run/systemd/netif/links/%"PRIu64, link->ifindex); if (r < 0) return -ENOMEM; - r = asprintf(&link->lease_file, "/run/systemd/network/leases/%"PRIu64, + r = asprintf(&link->lease_file, "/run/systemd/netif/leases/%"PRIu64, link->ifindex); if (r < 0) return -ENOMEM; |