packages icon indicating copy to clipboard operation
packages copied to clipboard

Error message at boot: Failed to copy files to /etc/issue: No such file or directory (T10192)

Open celticmagic opened this issue 1 year ago • 2 comments

Claude Durocher (#clauded), 2022-03-13 15:21:34 UTC

I'm getting the following error message at boot (Plasma flavour):

mar 13 10:49:04 my-pc systemd-tmpfiles[511]: Failed to copy files to /etc/issue: No such file or directory

This seems to be caused by this missing directory/file: /usr/share/factory/etc/issue. Error is gone whe this file is present. It could also be solved by removing the last line of /usr/lib/tmpfiles.d/etc.conf.

Additional info:

~> cat /etc/issue

                      [[ Solus Operating System ]]

~> cat /usr/lib/tmpfiles.d/etc.conf

#  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
L+ /etc/mtab - - - - ../proc/self/mounts
L! /etc/resolv.conf - - - - ../run/systemd/resolve/stub-resolv.conf
C! /etc/issue - - - -

~> man tmpfiles.d
...

C     /target/to/create                        -    -    -     -           /source/to/copy
...
C
      Recursively copy a file or directory, if the destination files or directories do not exist yet or the
      destination directory is empty. Note that this command will not descend into subdirectories if the destination
      directory already exists and is not empty. Instead, the entire copy operation is skipped. If the argument is
      omitted, files from the source directory /usr/share/factory/ with the same name are copied. Does not follow
      symlinks.
...
      If the exclamation mark ("!") is used, this line is only safe to execute during boot, and can break a running
      system. Lines without the exclamation mark are presumed to be safe to execute at any time, e.g. on package
      upgrades.  systemd-tmpfiles will take lines with an exclamation mark only into consideration, if the --boot option
      is given.

celticmagic avatar Aug 16 '23 17:08 celticmagic

Joey Riches (#joebonrichie), 2022-03-13 15:57:32 UTC

Documentation: https://www.freedesktop.org/software/systemd/man/file-hierarchy.html#/usr/share/factory/etc/

Looks like our baselayout package should be adapted for systemd recommendations without breaking new installs. Doing this will improve our statelessness as well.

celticmagic avatar Aug 16 '23 17:08 celticmagic

@ReillyBrogan / @joebonrichie Could the two of you coordinate looking into this?

ermo avatar May 04 '24 01:05 ermo