[Pkg-systemd-maintainers] Bug#738862: Bug#738862: Migrating TMPTIME setting accidentally enables cleaning of /var/tmp

Michael Stapelberg stapelberg at debian.org
Sat Feb 15 18:11:31 GMT 2014


Hi Michael,

Michael Biebl <biebl at debian.org> writes:
> To make overriding easier, we could furthe split up tmp.conf, or use
> something like echo "X  /tmp" > /etc/tmpfiles.d/99-tmp.conf
> to disable cleaning of /tmp. (This needs testing if this works as
> intended though)
Using x or X does unfortunately not work correctly to prevent D entries
from happening. See
http://cgit.freedesktop.org/systemd/systemd/tree/src/tmpfiles/tmpfiles.c?id=5d31974e44b8fa163f859d8467a3667ed52056d0#n859
(there’s a FIXME in the code)

I think we should split up tmp.conf into one entry per file, so that we
can override/nullify the entries by creating a file/linking to
/dev/null.

If you agree I can start working on a patch for that.

Also, I noticed that integer values for TMPTIME are not migrated,
e.g. TMPTIME=5 will not be properly migrated. Is that intentional?

-- 
Best regards,
Michael




More information about the Pkg-systemd-maintainers mailing list