On 3/29/21 3:32 AM, Till Dörges wrote:
Am 17.03.21 um 07:52 schrieb Till Dörges:
Am 16.03.21 um 19:26 schrieb DennisG:
At boot, my /tmp directory is being cleaned out. However, /var/tmp/ still has ~3000 folders, containing ~300 files. All but 2 of the folders are named zypp.*, created over the past 2 years and appear to contain mostly public/private keys and associated files.
My /etc/tmpfiles.d/tmp.conf looks like (as recommended on the Forums):
D! /tmp 1777 root root 1d D! /var/tmp 1777 root root 1d [...] What am I missing?
I've encountered the same issue, but didn't get around to pursuing it.
My *guess* is that it's actually a bug in the configuration files, i.e. the path "/var/tmp" is listed twice: [...] And maybe filing a bug at https://bugzilla.opensuse.org/ is a good idea, too.
Apparently there already was a bug in bugzilla. And even better, it seems to have just been fixed (this is on openSUSE Leap 15.2):
--- snip --- $ rpm -q filesystem filesystem-15.0-lp152.11.3.1.x86_64
$ rpm -q --changelog filesystem [...] * Fr Sep 04 2020 Thorsten Kukuk
- Split /var/tmp out of fs-var.conf, new file is fs-var-tmp.conf. Allows to override config to add cleanup options of /var/tmp [bsc#1078466] - Create fs-tmp.conf to cleanup /tmp regular (required with tmpfs) [bsc#1175519] [...] --- snip --- Regards -- Till
Thanks much for the follow-up, Till! I actually had a draft reply to the list (1) confirming your earlier suspicion, and (2) sharing the change made in the filesystem package. I only discovered this last week, but I haven't finished testing it. I did notice from the changelog that there were 5 (!) updates to that package (4 Sept - 9 Feb) yet it was not upgraded/distributed from 10.4 to 11.3 until March 23. There is an archived thread where the rationale for creating the additional tmp configuration files was discussed. I also determined why I had so many zypper/YaST orphans in /var/tmp: When package management starts, it loads a copy of the repository keys to a folder in /var/tmp. When closed, that folder is deleted. For an unknown reason, this wasn't done on my system for ~18 months. In any event, it is working properly now. Thanks to all who replied. I'll post an update once I have finished testing the new tmp config files setup. So far, neither /tmp nor /var/tmp are being emptied with the added new files. Figuring out the interplay of the systemd-tmpfiles-clean service flags used in the various config files, is not trivial. --dg