chiark / gitweb /
network: move configuration to /etc/systemd/network
authorTom Gundersen <teg@jklm.no>
Mon, 28 Oct 2013 19:11:10 +0000 (20:11 +0100)
committerTom Gundersen <teg@jklm.no>
Tue, 29 Oct 2013 13:17:57 +0000 (14:17 +0100)
This is private configuraiton, so let's not pollute the namespace (and hence make Debian happy :) ).

Makefile.am
network/99-default.link [moved from links/99-default.link with 100% similarity]
src/udev/net/link-config.c

index bb18217..bf5459a 100644 (file)
@@ -83,7 +83,7 @@ userunitdir=$(prefix)/lib/systemd/user
 userpresetdir=$(prefix)/lib/systemd/user-preset
 tmpfilesdir=$(prefix)/lib/tmpfiles.d
 sysctldir=$(prefix)/lib/sysctl.d
-linksdir=$(prefix)/lib/net/links
+networkdir=$(prefix)/lib/systemd/network
 pkgincludedir=$(includedir)/systemd
 systemgeneratordir=$(rootlibexecdir)/system-generators
 usergeneratordir=$(prefix)/lib/systemd/user-generators
@@ -2214,8 +2214,8 @@ INSTALL_DIRS += \
        $(sysconfdir)/udev/rules.d \
        $(sysconfdir)/udev/hwdb.d
 
-dist_links_DATA = \
-       links/99-default.link
+dist_network_DATA = \
+       network/99-default.link
 
 dist_udevrules_DATA += \
        rules/99-systemd.rules \
@@ -4492,8 +4492,8 @@ endif
 INSTALL_DIRS += \
        $(prefix)/lib/modules-load.d \
        $(sysconfdir)/modules-load.d \
-       $(prefix)/lib/net/links \
-       $(sysconfdir)/net/links \
+       $(prefix)/lib/systemd/network \
+       $(sysconfdir)/systemd/network \
        $(prefix)/lib/sysctl.d \
        $(sysconfdir)/sysctl.d \
        $(prefix)/lib/kernel/install.d \
index 089bd76..0a86d0e 100644 (file)
@@ -74,9 +74,9 @@ int link_config_ctx_new(link_config_ctx **ret) {
 
         LIST_HEAD_INIT(ctx->links);
 
-        ctx->link_dirs = strv_new("/etc/net/links",
-                                  "/run/net/links",
-                                  "/usr/lib/net/links",
+        ctx->link_dirs = strv_new("/etc/systemd/network",
+                                  "/run/systemd/network",
+                                  "/usr/lib/systemd/network",
                                   NULL);
         if (!ctx->link_dirs) {
                 log_error("failed to build link config directory array");