mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
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:
4 files changed
+28
-2
No files matched your search
@@ -117,3 +117,7 @@ assert "Decoded, no specifiers" "$(texec cat $DIR/b64)" = "hello %t"
|
||||
assert "Padded" "$(texec cat $DIR/b64pad)" = "hi"
|
||||
assert "Written with w" "$(texec cat $DIR/w1)" = "XYcdef"
|
||||
assert "Skipped when not Base64" "$(texec sh -c "ls $DIR | grep -c b64bad")" = "0"
|
||||
|
||||
sep
|
||||
say '--cat-config shows the files that would be read'
|
||||
assert "Files with their name" "$(texec /libexec/finit/tmpfiles --cat-config $CONF | head -2 | tr '\n' ' ')" = "# $CONF f~ /tmp/arg/b64 - - - - aGVsbG8gJXQK "
|
||||
Reference in new issue
Block a user