tmpfiles: add --cat-config, to show the files that would be read

With files in five directories, where one in /etc replaces the one
with the same name in /usr/lib, it is not easy to tell what tmpfiles
goes by.  systemd-tmpfiles has --cat-config for this.

Add the option.  It prints each file that would be read below a line
with its name, and exits:

    /libexec/finit/tmpfiles --cat-config

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2026-11-21 17:14:02 +01:00
1 parent 09dcf91877
commit 6b5a8e0386
4 files changed
+28 -2

No files matched your search

+2
View File
@@ -34,6 +34,8 @@ All relevant changes are documented in this file.
escapes, for a path with a space in it: `d "/srv/my files"`
- tmpfiles: add the `~` modifier for `f`, `F`, and `w` entries, as in
`f~`, where the argument is Base64, for a file with binary content
- tmpfiles: add `--cat-config`, to show the files that would be read,
each below a line with its name
- tmpfiles: add `--prefix=PATH`, to only run the entries for paths below
it. `--prefix` and `--exclude-prefix` match whole path components,
`--exclude-prefix=/dev` no longer skips `/devices`
+1 -2
View File
@@ -22,8 +22,7 @@ files or common packages already rely on, last what few will miss.
2. Command line
---------------
Missing options: `--root`, `--replace`, `--purge`, `--graceful`, and
`--cat-config`.
Missing options: `--root`, `--replace`, `--purge`, and `--graceful`.
3. Smaller things