mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
tmpfiles: run boot-only entries only at boot
A ! after the type marks an entry that is only safe to run at boot.
Finit's own files have them, like this one in x11.conf:
D! /tmp/.X11-unix 1777 root root
tmpfiles ignored the ! and ran these entries on every call, so this
emptied the directory under a running X server:
tmpfiles --remove
Only the character right after the type was looked at, and only for
a +.
Read all the modifiers after the type, in any order, and skip an
entry with ! unless the new --boot option is given. Finit gives it
at boot, together with --remove. Before this the r, R, and D entries
were never run at boot, so "r! /forcefsck" in legacy.conf left the
file in place.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
7 files changed
+108
-34
No files matched your search
@@ -84,6 +84,7 @@ EXTRA_DIST += testserv.sh
|
||||
EXTRA_DIST += tmpfiles-acl.sh
|
||||
EXTRA_DIST += tmpfiles-arg.sh
|
||||
EXTRA_DIST += tmpfiles-perm.sh
|
||||
EXTRA_DIST += tmpfiles-boot.sh
|
||||
EXTRA_DIST += tmpfiles-order.sh
|
||||
EXTRA_DIST += tmpfiles-unsupported.sh
|
||||
EXTRA_DIST += unexpected-restart.sh
|
||||
@@ -166,6 +167,7 @@ TESTS += testserv.sh
|
||||
TESTS += tmpfiles-acl.sh
|
||||
TESTS += tmpfiles-arg.sh
|
||||
TESTS += tmpfiles-perm.sh
|
||||
TESTS += tmpfiles-boot.sh
|
||||
TESTS += tmpfiles-order.sh
|
||||
TESTS += tmpfiles-unsupported.sh
|
||||
endif
|
||||
|
||||
Reference in new issue
Block a user