tmpfiles: skip an entry with a relative path

An entry with a path like tmp/file was run on the directory tmpfiles
happened to be started in.  tmpfiles.d(5) only has absolute paths, and
systemd skips such a line.  Do the same, with a warning.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2026-11-21 19:23:48 +01:00
1 parent ce5a08e866
commit 4bec72fcf2
4 files changed
+12 -4

No files matched your search

+3
View File
@@ -348,6 +348,9 @@ All relevant changes are documented in this file.
entry in Finit's own `etc.conf`. A file was copied over an existing
one. As in tmpfiles.d(5), nothing that exists is now overwritten, and
links are copied as links
- Fix tmpfiles entries with a relative path, they were run on whatever
directory `tmpfiles` was started in. As in tmpfiles.d(5), such an
entry is now skipped with a warning
- Fix logins refused after boot on a system with systemd's tmpfiles.d
files installed. They create `/run/nologin` at boot, and on systemd it
is removed by systemd-user-sessions. Finit now removes it when leaving