mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
tmpfiles: add the specifiers for the OS release and architecture
An entry with %a, or one of the specifiers that come from os-release,
was skipped as unsupported:
d /var/lib/app/%o-%w 0755 - - -
Add %o, %w, %W, %B, %M, and %A, read from /etc/os-release with
/usr/lib/os-release as fallback, and %a with the names tmpfiles.d(5)
has for the architectures. A field that os-release lacks gives an
empty string, as in tmpfiles.d(5). An entry is still skipped when
the architecture is not one of those known.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
6 files changed
+113
-22
No files matched your search
+5
-12
@@ -8,16 +8,7 @@ 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. Specifiers
|
||||
-------------
|
||||
|
||||
Missing are the ones for the OS release and the architecture: `%a`,
|
||||
`%A`, `%B`, `%M`, `%o`, `%w`, and `%W`. An entry with one of them is
|
||||
skipped. `%T` and `%V` are always `/tmp` and `/var/tmp`, they do not
|
||||
look at `$TMPDIR`.
|
||||
|
||||
|
||||
2. Remaining types and modifiers
|
||||
1. Remaining types and modifiers
|
||||
--------------------------------
|
||||
|
||||
* `L?`, and `C+`, which is read as `C`
|
||||
@@ -28,7 +19,7 @@ look at `$TMPDIR`.
|
||||
* Quoted paths, a path with a space in it cannot be written
|
||||
|
||||
|
||||
3. Command line
|
||||
2. Command line
|
||||
---------------
|
||||
|
||||
Missing options: `--prefix`, `--root`, `--replace`, `--dry-run`,
|
||||
@@ -37,7 +28,7 @@ is the useful one, for packages that run `tmpfiles --create` on only
|
||||
their own paths.
|
||||
|
||||
|
||||
4. Smaller things
|
||||
3. Smaller things
|
||||
------------------
|
||||
|
||||
* Files are processed one directory at a time. tmpfiles.d(5) sorts
|
||||
@@ -54,4 +45,6 @@ their own paths.
|
||||
* A `w` entry with a glob that matches several paths writes its
|
||||
argument only up to the first backslash for all but the first,
|
||||
`write_arg()` cuts the argument up as it goes
|
||||
* The `%T` and `%V` specifiers are always `/tmp` and `/var/tmp`, they
|
||||
do not look at `$TMPDIR`
|
||||
* `mksubsys()` in `src/util.c` is unused
|
||||
Reference in new issue
Block a user