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
@@ -85,6 +85,7 @@ EXTRA_DIST += tmpfiles-acl.sh
|
||||
EXTRA_DIST += tmpfiles-arg.sh
|
||||
EXTRA_DIST += tmpfiles-perm.sh
|
||||
EXTRA_DIST += tmpfiles-order.sh
|
||||
EXTRA_DIST += tmpfiles-unsupported.sh
|
||||
EXTRA_DIST += unexpected-restart.sh
|
||||
EXTRA_DIST += dbus-auth.sh
|
||||
EXTRA_DIST += dbus-authz.sh
|
||||
@@ -166,6 +167,7 @@ TESTS += tmpfiles-acl.sh
|
||||
TESTS += tmpfiles-arg.sh
|
||||
TESTS += tmpfiles-perm.sh
|
||||
TESTS += tmpfiles-order.sh
|
||||
TESTS += tmpfiles-unsupported.sh
|
||||
endif
|
||||
TESTS += unexpected-restart.sh
|
||||
if DBUS
|
||||
|
||||
Reference in new issue
Block a user