tmpfiles: honor age for r/R cleanup

Let r and R lines participate in --clean when they specify an age. The
target itself is removed only after its selected file or directory
timestamps have aged enough; --remove remains unconditional.

Follow-up for: beca6b6e6b
This commit is contained in:
dongshengyuan
2026-07-30 13:45:52 +08:00
parent e347f63b0f
commit 249421e75e
5 changed files with 618 additions and 26 deletions
+7 -2
View File
@@ -76,8 +76,13 @@ CHANGES WITH 262:
Changes in systemd-tmpfiles:
* systemd-tmpfiles now rejects non-empty argument fields for tmpfiles.d
line types that do not use the argument field. Previously, such
fields were silently ignored after a warning.
line types that do not use the argument field. This is a compatibility
change: fields that were previously ignored after a warning will now
cause the tmpfiles.d configuration to be rejected, so downstreams
should audit shipped tmpfiles.d snippets before upgrading.
* The r and R tmpfiles.d line types now honor the age field when
systemd-tmpfiles is invoked with --clean.
Changes in the TPM Subsystem: