mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
tmpfiles: add --dry-run, to show what would be run
There was no way to see what the tmpfiles.d files on a system amount
to, short of running them:
tmpfiles --dry-run --create --remove --boot
With -n or --dry-run each entry that would be run is printed, with
what would be done, remove, clean, or create, in the order it would
be. Nothing is changed.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
5 files changed
+47
-5
No files matched your search
@@ -22,6 +22,8 @@ All relevant changes are documented in this file.
|
||||
`%w`, `%W`, `%B`, `%M`, and `%A`. Before, an entry with a `%`
|
||||
in the path was skipped. **Note:** a literal `%` in such an argument,
|
||||
e.g. in a `w` entry for `core_pattern`, must now be written `%%`
|
||||
- tmpfiles: add `-n`, `--dry-run`, to show the entries that would be run,
|
||||
in the order they would be, without doing anything
|
||||
- tmpfiles: add the `t` and `T` entries, to set extended attributes on
|
||||
a path, `T` also on everything below it
|
||||
- tmpfiles: add the `h` and `H` entries, to set file attributes as with
|
||||
|
||||
@@ -31,6 +31,11 @@ For your convenience a set of *optional* plugins are available:
|
||||
files distributed with Finit. It is read first but can be overridden
|
||||
by any of the standard tmpfiles.d directories, e.g. `/etc/tmpfiles.d`.
|
||||
|
||||
To see what the files on a system amount to, without anything being
|
||||
done, add `--dry-run`:
|
||||
|
||||
/libexec/finit/tmpfiles --dry-run --create --remove --boot
|
||||
|
||||
The age of an entry, e.g. `10d` below, is used only by `tmpfiles
|
||||
--clean`, which Finit never runs on its own:
|
||||
|
||||
|
||||
@@ -13,16 +13,17 @@ files or common packages already rely on, last what few will miss.
|
||||
|
||||
* `C+`, which is read as `C`
|
||||
* `z` and `Z` only set the SELinux label when `restorecon` is installed
|
||||
* Modifiers `-` (do not fail), `=` (remove what is of another type),
|
||||
`~` (base64 argument), and `^` (credential as argument)
|
||||
* Modifiers `=` (remove what is of another type), `~` (base64
|
||||
argument), and `^` (credential as argument). `-` (do not fail) has
|
||||
nothing to do, tmpfiles never exits with an error for an entry
|
||||
* Quoted paths, a path with a space in it cannot be written
|
||||
|
||||
|
||||
2. Command line
|
||||
---------------
|
||||
|
||||
Missing options: `--root`, `--replace`, `--dry-run`, `--purge`,
|
||||
`--graceful`, and `--cat-config`.
|
||||
Missing options: `--root`, `--replace`, `--purge`, `--graceful`, and
|
||||
`--cat-config`.
|
||||
|
||||
|
||||
3. Smaller things
|
||||
|
||||
Reference in new issue
Block a user