2014-06-13 11:29:25 +00: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 11:21:07 +00:00
|
|
|
L+ /etc/mtab - - - - ../proc/self/mounts
|
2021-05-16 11:35:51 +00:00
|
|
|
{% if HAVE_SMACK_RUN_LABEL %}
|
2015-09-10 12:52:39 +00:00
|
|
|
t /etc/mtab - - - - security.SMACK64=_
|
2021-05-16 11:35:51 +00:00
|
|
|
{% endif %}
|
2021-12-23 11:01:07 +00:00
|
|
|
C! /etc/locale.conf - - - -
|
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 17:13:41 +00:00
|
|
|
C! /etc/nsswitch.conf - - - -
|
2023-01-17 17:21:59 +00:00
|
|
|
C! /etc/vconsole.conf - - - -
|
2021-05-16 11:35:51 +00:00
|
|
|
{% if 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 17:13:41 +00:00
|
|
|
C! /etc/pam.d - - - -
|
2021-05-16 11:35:51 +00:00
|
|
|
{% endif %}
|
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 17:13:41 +00:00
|
|
|
C! /etc/issue - - - -
|