mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
A ^ after the type says the argument is the name of a credential to
read the real argument from. Files from systemd have them:
f^ /etc/hosts - - - - network.hosts
The ^ was not read, so on a system without /etc/hosts this made one
holding the text "network.hosts".
Finit has no credentials. Skip the entry, which is what systemd does
when the credential is not set.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
46 lines
1.6 KiB
Markdown
46 lines
1.6 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
|
|
--------------------------------
|
|
|
|
* `C+`, which is read as `C`
|
|
* `z` and `Z` only set the SELinux label when `restorecon` is installed
|
|
* Modifiers `=` (remove what is of another type) and `~` (base64
|
|
argument). `-` (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
|
|
* Quoted paths, a path with a space in it cannot be written
|
|
|
|
|
|
2. Command line
|
|
---------------
|
|
|
|
Missing options: `--root`, `--replace`, `--purge`, `--graceful`, and
|
|
`--cat-config`.
|
|
|
|
|
|
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
|
|
* An `x` or `X` entry with an age should have what it names cleaned
|
|
by that age, the age is not read
|
|
* The `%T` and `%V` specifiers are always `/tmp` and `/var/tmp`, they
|
|
do not look at `$TMPDIR`
|
|
* A `w` entry truncates the file, systemd writes over the start of
|
|
what is there. It only matters for a regular file, not in `/proc`
|
|
or `/sys`
|
|
* `mksubsys()` in `src/util.c` is unused
|