From 8b899233c6bc44cf9f507cd807398c737e74d6ec Mon Sep 17 00:00:00 2001 From: Jian-Hong Pan Date: Fri, 1 Mar 2024 14:26:17 +0800 Subject: [PATCH] Revert "[DEB] Bring tmpfiles.d/tmp.conf in line with Debian defaults" This reverts commit f3a832843357a25a7bda4cf3351dfc41ea772fbd. Debian's policy is to never clean-up /var/tmp to keep consistency with the SysV init system. Flatpak creates temporary files in /var/tmp during app updates but does not remove them on error, to avoid re-downloading them on a future update attempt, and expects these files to be automatically cleaned-up by the system eventually, according to the site's policy. With this policy in place these files are never removed, wasting the user's storage space. Revert this commit back to upstream's default policy of cleaning up /tmp every 10 days and /var/tmp every 30 days. https://phabricator.endlessm.com/T23762 https://phabricator.endlessm.com/T33887 --- tmpfiles.d/tmp.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmpfiles.d/tmp.conf b/tmpfiles.d/tmp.conf index 39cb5cccaa..fe5225d751 100644 --- a/tmpfiles.d/tmp.conf +++ b/tmpfiles.d/tmp.conf @@ -8,5 +8,5 @@ # See tmpfiles.d(5) for details # Clear tmp directories separately, to make them easier to override -D /tmp 1777 root root - -#q /var/tmp 1777 root root 30d +q /tmp 1777 root root 10d +q /var/tmp 1777 root root 30d