mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
tmpfiles: add --purge and the $ modifier
When a package is removed, the state its tmpfiles.d file made is left
behind, there was no way to ask for it to be removed.
systemd-tmpfiles has --purge for that, which removes what the entries
marked with a $ after the type make:
d$ /var/lib/app 0750 app app
tmpfiles --purge /usr/lib/tmpfiles.d/app.conf
Add the same. It only takes the entries of files on the command line,
never all of the tmpfiles.d files, and a path is removed before the
one above it. A $ was until now read and ignored.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
5 files changed
+104
-4
No files matched your search
@@ -85,6 +85,7 @@ EXTRA_DIST += tmpfiles-acl.sh
|
||||
EXTRA_DIST += tmpfiles-arg.sh
|
||||
EXTRA_DIST += tmpfiles-attr.sh
|
||||
EXTRA_DIST += tmpfiles-perm.sh
|
||||
EXTRA_DIST += tmpfiles-purge.sh
|
||||
EXTRA_DIST += tmpfiles-boot.sh
|
||||
EXTRA_DIST += tmpfiles-clean.sh
|
||||
EXTRA_DIST += tmpfiles-copy.sh
|
||||
@@ -174,6 +175,7 @@ TESTS += tmpfiles-acl.sh
|
||||
TESTS += tmpfiles-arg.sh
|
||||
TESTS += tmpfiles-attr.sh
|
||||
TESTS += tmpfiles-perm.sh
|
||||
TESTS += tmpfiles-purge.sh
|
||||
TESTS += tmpfiles-boot.sh
|
||||
TESTS += tmpfiles-clean.sh
|
||||
TESTS += tmpfiles-copy.sh
|
||||
|
||||
Reference in new issue
Block a user