mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
tmpfiles: skip an entry that is not supported, do not exit
tmpfiles exited at the first entry with a type it does not know, or
with a % specifier in the path:
h /tmp/dir - - - - +i
f /tmp/dir/after
tmpfiles --create t.conf
This never created /tmp/dir/after. At boot it meant that one such
line, in any tmpfiles.d file, stopped every entry after it, in that
file and in all the files sorted after it. The message says skipping,
but errx() exits.
Warn and go on with the next entry. With two passes, for --create
with --remove, only the second one warns.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
4 files changed
+52
-3
No files matched your search
@@ -252,6 +252,9 @@ All relevant changes are documented in this file.
|
||||
- Fix `tmpfiles --create --remove`, each entry was removed and created in
|
||||
turn, so an `r` entry removed what an entry above it had just created.
|
||||
All of the removing is now done first
|
||||
- Fix tmpfiles giving up at the first entry it does not support, an unknown
|
||||
type or a `%` specifier in the path. No entry after it was run, in that
|
||||
file or in the files after it. Such an entry is now skipped with a warning
|
||||
- Fix a lost reload for a service paused mid-reload by a condition in
|
||||
flux. A second reload arriving meanwhile re-parsed the unchanged .conf
|
||||
and cleared the pending mark, so the service resumed without ever being
|
||||
|
||||
Reference in new issue
Block a user