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
-1
View File
@@ -2729,7 +2729,6 @@ SPDX-License-Identifier: LGPL-2.1-or-later
DHCP/HTTP base EFI boot.
- **tmpfiles:**
- allow time-based cleanup in r and R too
- creating new directories/subvolumes/fifos/device nodes
should not follow symlinks. None of the other adjustment or creation
calls follow symlinks.