Control: severity -1 normal Control: tags -1 moreinfo Am 17.10.19 um 13:09 schrieb Mathias Behrle: > Package: systemd > Version: 242-7 > Severity: important > > Dear Maintainers, > > since considerable time I encounter the problem, that tmp > files/directories created by vim are obviously deleted by systemd-tmpfiles. > While searching for the reason I found the following facts: > > /usr/lib/tmpfiles.d/tmp.conf contains > # Clear tmp directories separately, to make them easier to override > > > D /tmp 1777 root root - > > This line is introduced by > https://salsa.debian.org/systemd-team/systemd/blob/experimental/debian/patches/debian/Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch > and replaces > q /tmp 1777 root root 10d > > So good so far, now to the reason of this bug report: > The current behavior on my system is, that regardless of any excludes > the tmp directory is cleaned radically, verified by running > # env SYSTEMD_LOG_LEVEL=debug systemd-tmpfiles --remove > > So I was not able to prevent the deletion of any files by defining excludes > like > X /tmp/v* > x /tmp/v* > > Also the predefined excludes in /usr/lib/tmpfiles.d/tmp.conf do not > work, i.e. those files are cleaned up when existing. So I think that > there is definitely a bug in systemd-tmpfiles.
Maybe this is a misunderstanding how x/X is supposed to work. "D /tmp 1777 root root -" is supposed to clean up /tmp during boot unconditionally. It is *not* using age based cleaning. This Debian specific change was made as this has always been the behaviour in Debian. The documentation for the x/X parameter says: > x > Ignore a path during cleaning. Use this type to exclude paths from > clean-up as controlled with the Age > parameter So x/X having no effect on "D /tmp 1777 root root -" is expected, I'd say and they work as documented. Please elaborate. -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature
