2014-06-13 13:29:25 +02:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
# See tmpfiles.d(5) for details
|
|
|
|
|
|
|
|
L /etc/os-release - - - - ../usr/lib/os-release
|
2014-06-16 13:21:07 +02:00
|
|
|
L+ /etc/mtab - - - - ../proc/self/mounts
|
2015-09-10 14:52:39 +02:00
|
|
|
m4_ifdef(`HAVE_SMACK_RUN_LABEL',
|
|
|
|
t /etc/mtab - - - - security.SMACK64=_
|
|
|
|
)m4_dnl
|
2017-10-03 13:12:29 +02:00
|
|
|
m4_ifdef(`ENABLE_RESOLVE',
|
2017-10-24 15:28:41 +02:00
|
|
|
L! /etc/resolv.conf - - - - ../run/systemd/resolve/stub-resolv.conf
|
2015-02-02 12:25:02 +01:00
|
|
|
)m4_dnl
|
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.
2019-07-25 19:13:41 +02:00
|
|
|
C! /etc/nsswitch.conf - - - -
|
2015-03-03 12:37:52 +01:00
|
|
|
m4_ifdef(`HAVE_PAM',
|
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.
2019-07-25 19:13:41 +02:00
|
|
|
C! /etc/pam.d - - - -
|
2015-03-03 12:37:52 +01:00
|
|
|
)m4_dnl
|
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.
2019-07-25 19:13:41 +02:00
|
|
|
C! /etc/issue - - - -
|