summaryrefslogtreecommitdiff
path: root/tmpfiles.d
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-08-27 17:45:41 +0200
committerTom Gundersen <teg@jklm.no>2014-08-27 18:17:16 +0200
commitaeb50ff0bd4bbbca74c4695072232348351d512d (patch)
treeda9ccc62028fcaac678bb614561cf0471c92f36c /tmpfiles.d
parent81fc054dc7c365545bca86d78bf36a12658cedb3 (diff)
tmpfiles: make resolv.conf entry conditional on resolved support
Diffstat (limited to 'tmpfiles.d')
-rw-r--r--tmpfiles.d/.gitignore1
-rw-r--r--tmpfiles.d/etc.conf.m4 (renamed from tmpfiles.d/etc.conf)2
2 files changed, 3 insertions, 0 deletions
diff --git a/tmpfiles.d/.gitignore b/tmpfiles.d/.gitignore
new file mode 100644
index 000000000..eb323154f
--- /dev/null
+++ b/tmpfiles.d/.gitignore
@@ -0,0 +1 @@
+etc.conf
diff --git a/tmpfiles.d/etc.conf b/tmpfiles.d/etc.conf.m4
index b23272cb2..f567c8d6e 100644
--- a/tmpfiles.d/etc.conf
+++ b/tmpfiles.d/etc.conf.m4
@@ -10,6 +10,8 @@
L /etc/os-release - - - - ../usr/lib/os-release
L /etc/localtime - - - - ../usr/share/zoneinfo/UTC
L+ /etc/mtab - - - - ../proc/self/mounts
+m4_ifdef(`ENABLE_RESOLVED',
L /etc/resolv.conf - - - - ../run/systemd/resolve/resolv.conf
+)
C /etc/nsswitch.conf - - - -
C /etc/pam.d - - - -