mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
A C entry leaves a directory alone when there is something in it. In
tmpfiles.d(5) a C+ entry copies to it anyway: what the directory lacks
is added, and what it has is not overwritten.
C+ /etc/skel - - - - /usr/share/factory/etc/skel
tmpfiles reads C+ as C. Let the + through to copy_tree().
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
36 lines
1.1 KiB
Markdown
36 lines
1.1 KiB
Markdown
tmpfiles TODO
|
|
=============
|
|
|
|
What `tmpfiles` lacks compared to [tmpfiles.d(5)][], from a read of
|
|
`src/tmpfiles.c` in November 2026. Ranked: first what Finit's own
|
|
files or common packages already rely on, last what few will miss.
|
|
|
|
[tmpfiles.d(5)]: https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
|
|
|
|
|
|
1. Remaining types and modifiers
|
|
--------------------------------
|
|
|
|
* `z` and `Z` only set the SELinux label when `restorecon` is installed
|
|
* Modifier `=` (remove what is of another type). `-` (do not fail) has
|
|
nothing to do, tmpfiles never exits with an error for an entry, and
|
|
an entry with `^` (credential as argument) is skipped, Finit has no
|
|
credentials
|
|
|
|
|
|
2. Command line
|
|
---------------
|
|
|
|
Missing options: `--root`, `--replace`, and `--purge`.
|
|
|
|
|
|
3. Smaller things
|
|
------------------
|
|
|
|
* 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`
|
|
in `/etc` should run before `50-y.conf` in `/usr/lib`
|
|
* `a` and `A` handle an ACL of at most 32 entries, a path with more is
|
|
left as it is, with a warning
|
|
* `mksubsys()` in `src/util.c` is unused
|