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
So it would appear that the first line for /tmp is being used (I presume by a systemd unit), but the second line is not. My /usr/lib/tmpfiles.d/tmp.conf has:
d /tmp 1777 root root - d /var/tmp 1777 root root -
which I have understood is the installed default and is not used when tmp.conf exists under /etc/tmpfiles.d/ (?).
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: --- snip --- $ \grep -Hrn 'var/tmp ' /usr/lib/tmpfiles.d/* /usr/lib/tmpfiles.d/fs-var.conf:9:d /var/tmp 1777 root - /usr/lib/tmpfiles.d/tmp.conf:13:q /var/tmp 1777 root root - --- snip --- and apparently installing a custom version of "tmp.conf" doesn't cut it, because it's late to the party: Mar 16 21:47:29 box systemd-tmpfiles[14015]: [/etc/tmpfiles.d/tmp.conf:12] Duplicate line for path "/var/tmp", ignoring. So you probably have to install a custom version of "fs-var.conf" and configure your retention policy for /var/tmp there. And maybe filing a bug at https://bugzilla.opensuse.org/ is a good idea, too. HTH -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de PRESENSE Technologies GmbH Nagelsweg 41, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024