summaryrefslogtreecommitdiff
path: root/tmpfiles.d
diff options
context:
space:
mode:
authorLuca BRUNO <luca.bruno@coreos.com>2021-12-23 11:01:07 +0000
committerLuca BRUNO <luca.bruno@coreos.com>2021-12-23 11:01:12 +0000
commit623370e643e228449f5e49c0d82e6e423ae0e0f7 (patch)
treebe67f5ff16f8501b3970c3d48b6f5c9ee208eb0f /tmpfiles.d
parent8f7a0fcbecb37569734264483c6ceb49af444982 (diff)
downloadsystemd-623370e643e228449f5e49c0d82e6e423ae0e0f7.tar.gz
factory: populate /etc/locale.conf with systemd build-time setting
This adds /etc/locale.conf to the set of configuration files populated by tmpfiles.d factory /etc handling. In particular, the build-time locale configuration in systemd is now wired to a /usr factory file, and installed to the system. On boot, if other locale customization tools did not write /etc/locale.conf on the system, the factory default file gets copied to /etc by systemd-tmpfiles. This is done in order to avoid skews between different system components when no locale settings are configured. At that point, systemd can safely act as the fallback owner of /etc/locale.conf.
Diffstat (limited to 'tmpfiles.d')
-rw-r--r--tmpfiles.d/etc.conf.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmpfiles.d/etc.conf.in b/tmpfiles.d/etc.conf.in
index ebdc699c26..2fdd498da5 100644
--- a/tmpfiles.d/etc.conf.in
+++ b/tmpfiles.d/etc.conf.in
@@ -12,6 +12,7 @@ L+ /etc/mtab - - - - ../proc/self/mounts
{% if HAVE_SMACK_RUN_LABEL %}
t /etc/mtab - - - - security.SMACK64=_
{% endif %}
+C! /etc/locale.conf - - - -
C! /etc/nsswitch.conf - - - -
{% if HAVE_PAM %}
C! /etc/pam.d - - - -