tmpfiles: let %T and %V follow $TMPDIR

The %T and %V specifiers are always /tmp and /var/tmp.  In systemd
both are the first of $TMPDIR, $TEMP, and $TMP that is set to an
absolute path of a directory, and only otherwise /tmp and /var/tmp.

Do the same.  At boot none of them are set, so nothing changes there.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2026-11-21 17:14:03 +01:00
1 parent c349d564d4
commit 9ea64e5c3c
4 files changed
+29 -4

No files matched your search

+2
View File
@@ -38,6 +38,8 @@ All relevant changes are documented in this file.
each below a line with its name
- tmpfiles: add `--graceful`, for scripts that give it. It changes
nothing, an unknown user or group is never an error in Finit
- tmpfiles: the `%T` and `%V` specifiers now follow `$TMPDIR`, `$TEMP`,
or `$TMP`, when set to a directory
- 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`