Page MenuHomeSolus

Error message at boot: Failed to copy files to /etc/issue: No such file or directory
Open, LowPublic

Description

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.

Event Timeline

clauded created this task.Mar 13 2022, 3:21 PM
joebonrichie triaged this task as Low priority.Mar 13 2022, 3:57 PM
joebonrichie edited projects, added Software, Platform Integration; removed Lacks Project.
joebonrichie added a subscriber: joebonrichie.

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.