On Sun, 5 May 2024 at 21:04, Luca Boccassi <bl...@debian.org> wrote: > > On Tue, 5 Jul 2022 19:42:37 +0200 Michael Biebl <bi...@debian.org> > wrote: > > > > Hi Eric > > > > On Fri, 31 Jul 2020 15:12:48 +0000 Eric Desrochers > > <eric.desroch...@canonical.com> wrote: > > > Package: systemd > > > Version: 245.7-1 > > > Severity: normal > > > > > > Dear Maintainer, > > > > > > Debian systemd implementation does not clean > > > /var/tmp by default. > > > > > > * quilt patch: > > > d/p/debian/Bring-tmpfiles.d-tmp.conf-in-line-with-Debian- > defaul.patch > > > > > > * systemd-245.7/tmpfiles.d/tmp.conf: > > > #q /var/tmp 1777 root root 30d > > > > > > The patch exist in Debian since 2012. > > > > > > The topic has been discussed and a few suggestion has been put on > the > > > table in the following Ubuntu bug: > https://launchpad.net/bugs/1870585 > > > > > > I fill this bug today to start a conversation. > > > > I haven't received any further input from your side. > > Are you still interested in this issue or not? > > I wonder where to go from here and what to do about this bug report. > > I think it's been long enough, and for Trixie we should bring the > defaults in line with upstream and other distributions, which means: > > - /tmp/ is a tmpfs > - /var/tmp/ is cleaned up on a timer > > Hence, I intend to apply these changes in the next src:systemd upload > to unstable, probably next week. > > This will be mentioned in NEWS (and I guess in the release notes when > the time comes), together with the instructions to override for anybody > wanting to keep the old behaviour, which is as trivial as: > > systemctl mask tmp.mount (or touch /etc/systemd/system/tmp.mount) > touch /etc/tmpfiles.d/tmp.conf > > for the former and the latter respectively. > > In case anybody is aware of packages/programs needing an update to cope > with these changes, or any other issue, please let me know and I will > file bugs.
Thanks for the useful input, the following has been done: - existing installations pre-trixie will get an orphaned tmpfiles.d in /etc/ that keeps the existing behaviour unchanged (no cleanup of /var/tmp) - openssh and tmux have been fixed to provide a tmpfiles.d exception to retain their respective files - the /tmp/ description in debian-installer has been updated to note it is a tmpfs by default (via a commit in partman-basicfilesystems, will upload if nobody gets around to it before Trixie's freeze) - two paragraphs have been provided for the release notes ticket - the changes are also noted in NEWS, with instructions on how to override locally - as mentioned, the latest upload to unstable makes /tmp/ a tmpfs by default and for new installations 10+ days old files in /tmp/ and 30+ days old files in /var/tmp/ are cleaned up daily If anybody wants to spend time to provide a MR to query in debian-installer whether to optionally customize these changes locally on installation, I will happily review and merge it.