You are not logged in.

#1 2022-10-15 21:11:52

scruffidog
Member
Registered: 2010-01-10
Posts: 26

[SOLVED] /etc/locale.conf and systemd-tmpfiles

This is more of a minor annoyance as opposed to a problem.
As I understand it, /etc/locale.conf is used to set a bunch of LANG/LC_* related env variables, which I did.
Unfortunately it seems that systemd-tmpfiles-setup does not seem to like the file:

$(systemctl status systemd-tmpfiles-setup) wrote:

● systemd-tmpfiles-setup.service - Create Volatile Files and Directories
     Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-setup.service; static)
     Active: active (exited) since Sat 2022-10-15 16:47:53 EDT; 11min ago
       Docs: man:tmpfiles.d(5)
             man:systemd-tmpfiles(8)
    Process: 546 ExecStart=systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev (code=exited, status=73)
   Main PID: 546 (code=exited, status=73)
        CPU: 14ms

Oct 15 16:47:53 victus systemd[1]: Starting Create Volatile Files and Directories...
Oct 15 16:47:53 victus systemd-tmpfiles[546]: Failed to copy files to /etc/locale.conf: No such file or directory
Oct 15 16:47:53 victus systemd[1]: Finished Create Volatile Files and Directories.

$(systemd-tmpfiles --cat-config) wrote:

....
C! /etc/locale.conf - - - -
....

Since this is the vanilla arch version of the /usr/lib/tmpfiles.d/arch.conf, not sure why this is the case. As I understand, C! at boot-time will do nothing if the target already exists.
Is the answer to remove the line from arch.conf ?

Last edited by scruffidog (2022-10-18 21:46:14)

Offline

#2 2022-10-16 05:32:39

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: [SOLVED] /etc/locale.conf and systemd-tmpfiles

Which line from arch.conf? What is the content of that file on your machine?

Why don't you have /etc/locale.conf? Creating it is part of the standard installation procedure.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2022-10-16 07:11:45

seth
Member
Registered: 2012-09-03
Posts: 49,966

Re: [SOLVED] /etc/locale.conf and systemd-tmpfiles

/etc/locale.conf is used to set a bunch of LANG/LC_* related env variables, which I did.

stat /etc/locale.conf

I suspect the system-tmpfiles error message is misleading and this is a permission problem (or locale.conf is a directory?)

Last edited by seth (2022-10-16 07:12:13)

Online

#4 2022-10-16 17:41:40

scruffidog
Member
Registered: 2010-01-10
Posts: 26

Re: [SOLVED] /etc/locale.conf and systemd-tmpfiles

Sorry, wrong file (this is what happens when you grep instead of searching the output of $(systemd-tmpiles --cat-catalog)):
the file locale.conf is found in /usr/lib/tmpfiles.d/etc.conf.
As mentioned before, these are bog standard, unmodified files from filesystem-2021.12.07-1 pkg.
And I do have this file as this is where I set my LANG env variable:

$(stat /etc/locale.conf) wrote:

      File: /etc/locale.conf
     Size: 17            Blocks: 8          IO Block: 4096   regular file
Device: 259,4    Inode: 786629      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-10-15 16:32:22.127508269 -0400
Modify: 2020-05-11 09:46:01.000000000 -0400
Change: 2022-10-15 16:19:43.080659131 -0400
    Birth: 2022-10-14 15:40:59.122471429 -0400

cfr wrote:

Which line from arch.conf? What is the content of that file on your machine?

Why don't you have /etc/locale.conf? Creating it is part of the standard installation procedure.

Last edited by scruffidog (2022-10-16 17:42:35)

Offline

#5 2022-10-16 18:58:46

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: [SOLVED] /etc/locale.conf and systemd-tmpfiles

What does

stat /usr/share/factory/etc/locale.conf

give?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2022-10-18 02:24:11

scruffidog
Member
Registered: 2010-01-10
Posts: 26

Re: [SOLVED] /etc/locale.conf and systemd-tmpfiles

hmmmm.... the file does not exist....
after a bit more digging, it seems that there a bunch of files missing from the systemd-251.6 pkg so a re-install of sytemd-251.6 seems to be in order.
that seems to fix this issue, now to figure out why files went missing...

cfr wrote:

What does

stat /usr/share/factory/etc/locale.conf

give?

Offline

Board footer

Powered by FluxBB