mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
An entry for a device with a 0 in its number was skipped:
c /dev/tty 0666 root tty - 5:0
parse_mm() took 0 to mean atoi() could not read the number.
Use atonum(), which tells the two apart.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
76 lines
2.5 KiB
Markdown
76 lines
2.5 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. Ages
|
|
-------
|
|
|
|
Finit never runs `tmpfiles --clean` itself, `doc/plugins.md` tells the
|
|
user to call it from cron.
|
|
|
|
* Only one number with `s`, `m`, `h`, `d`, or `w` is read. Missing
|
|
are `1d12h`, `ms`, `us`, the `~` prefix, and the `a`, `b`, `c`, `m`
|
|
selectors for which timestamps to compare
|
|
* The age is only used for `d`, `D`, and `e`, and an `e` entry with a
|
|
glob in the path is not cleaned
|
|
|
|
|
|
2. Subvolumes
|
|
-------------
|
|
|
|
`v`, `q`, and `Q` are skipped as unsupported. systemd makes a plain
|
|
directory when the file system is not btrfs, doing the same gets
|
|
distribution files with these entries to work.
|
|
|
|
|
|
3. Specifiers
|
|
-------------
|
|
|
|
A path with `%` in it is skipped, also the escaped `%%`. The ones that
|
|
show up in files from distributions are `%b` (boot ID), `%m` (machine
|
|
ID), `%H` (hostname), `%v` (kernel release), and for the argument `%T`
|
|
and `%V`. This is the largest gap for using such files unchanged, and
|
|
the most work.
|
|
|
|
|
|
4. Remaining types and modifiers
|
|
--------------------------------
|
|
|
|
* `L?`, and `C+`, which is read as `C`
|
|
* `z` and `Z` only set the SELinux label when `restorecon` is installed
|
|
* `t`, `T` for extended attributes and `h`, `H` for file attributes
|
|
* Modifiers `-` (do not fail), `=` (remove what is of another type),
|
|
`~` (base64 argument), and `^` (credential as argument)
|
|
* Quoted paths, a path with a space in it cannot be written
|
|
|
|
|
|
5. Command line
|
|
---------------
|
|
|
|
Missing options: `--prefix`, `--root`, `--replace`, `--dry-run`,
|
|
`--purge`, `--graceful`, and `--cat-config`. Of these `--prefix`
|
|
is the useful one, for packages that run `tmpfiles --create` on only
|
|
their own paths.
|
|
|
|
|
|
6. 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
|
|
* A new `f` file without a mode gets what the umask leaves of 0666,
|
|
it should be 0644
|
|
* A `d` or `e` entry for a path that is a link to a directory warns
|
|
that mode and owner could not be set
|
|
* An age so large that it overflows is not caught
|
|
* `mksubsys()` in `src/util.c` is unused
|