doc: note what sorting the tmpfiles.d files by name needs

Sorting the files by name across directories is not a change to make
on its own.  Finit runs every entry for a path, so the last one wins,
where systemd goes by the first.  Sorted, an entry in /etc would lose
to one in /usr/lib with a later name.

Say so in the TODO, and add the relative paths found in review.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2026-11-21 17:15:13 +01:00
1 parent f2c0888375
commit 1f7208f88f
1 file changed
+7 -1
+7 -1
View File
@@ -25,7 +25,13 @@ Missing options: `--root`, `--replace`, and `--purge`.
* Files are processed one directory at a time. tmpfiles.d(5) sorts * Files are processed one directory at a time. tmpfiles.d(5) sorts
all of them by name, whatever directory they are in, so `00-x.conf` all of them by name, whatever directory they are in, so `00-x.conf`
in `/etc` should run before `50-y.conf` in `/usr/lib` in `/etc` should run before `50-y.conf` in `/usr/lib`. Sorting is
not enough: with two entries for the same path systemd goes by the
first and Finit runs both, so the last one wins. Today that is the
one in `/etc`, which is what an admin expects. Sorted by name it
would be the one in `/usr/lib`. Both changes have to go in together
* A relative path is taken as it is, tmpfiles.d(5) only has absolute
ones
* `a` and `A` handle an ACL of at most 32 entries, a path with more is * `a` and `A` handle an ACL of at most 32 entries, a path with more is
left as it is, with a warning left as it is, with a warning
* `mksubsys()` in `src/util.c` is unused * `mksubsys()` in `src/util.c` is unused