summaryrefslogtreecommitdiff
path: root/tmpfiles.d
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-25 19:13:41 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-25 19:13:41 +0200
commit9ba77b994926a2c1f671c9fbf112202a4e9d8e68 (patch)
tree9f749100b97b0804511007a6de70e574a5c28e01 /tmpfiles.d
parent09bef967d9cacb95bafab0882606cc3a57ac324e (diff)
downloadsystemd-9ba77b994926a2c1f671c9fbf112202a4e9d8e68.tar.gz
tmpfiles: copy files to /etc only on boot
We'd copy /etc/nsswitch.conf, /etc/pam.d/, and /etc/issue (*) on every tmpfiles --create run. I think we should only do this at boot, so if people install systemd.rpm in a larger transaction and want to create those files at a later step, we don't interfere with that. (Stuff like /etc/os-release and /etc/mtab is not really configurable, we might as was create it uncondtionally.) (Seemingly, the alternative approach might be to not call systemd-tmpfiles --create in systemd.rpm %post. But this wouldn't have much effect, because various packages call it anyway, and our %tmpfiles_create_package macro does too. So we need to change the configuration instead.) (*) We don't provide /usr/share/factory/issue, so normally this fails, but somebody else might provide that file, so it seems useful to keep the C line.
Diffstat (limited to 'tmpfiles.d')
-rw-r--r--tmpfiles.d/etc.conf.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/tmpfiles.d/etc.conf.m4 b/tmpfiles.d/etc.conf.m4
index 123de6ea42..f82e0b82ce 100644
--- a/tmpfiles.d/etc.conf.m4
+++ b/tmpfiles.d/etc.conf.m4
@@ -15,8 +15,8 @@ t /etc/mtab - - - - security.SMACK64=_
m4_ifdef(`ENABLE_RESOLVE',
L! /etc/resolv.conf - - - - ../run/systemd/resolve/stub-resolv.conf
)m4_dnl
-C /etc/nsswitch.conf - - - -
+C! /etc/nsswitch.conf - - - -
m4_ifdef(`HAVE_PAM',
-C /etc/pam.d - - - -
+C! /etc/pam.d - - - -
)m4_dnl
-C /etc/issue - - - -
+C! /etc/issue - - - -