Bug#904079: systemd: tmpfiles: cleaning up /tmp at boot breaks things

Michael Biebl biebl at debian.org
Thu Jul 19 11:50:23 BST 2018


Am 19.07.2018 um 11:47 schrieb Arnaud Rebillout:
> Package: systemd
> Version: 239-5
> Severity: normal
> 
> Dear Maintainer,
> 
> At the moment Debian carries a patch against /usr/lib/tmpfiles.d/tmp.conf
> This patch sets the type for `/tmp` to `D`, causing the content of the
> directory to be removed when systemd-tmpfiles is invoked with `--remove`.
> See man tmpfiles.d(5) and man systemd-tmpfiles(8).
> 
> In other words, `/tmp` is cleaned up at some moment of the boot, and
> there's a risk that a process is owning and using a file at this moment,
> causing a failure.
> 
> I personally came accross such failure with console-setup, and the bug
> is already reported at:
> <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846256>

/tmp has been traditionally cleaned up during (early) boot in Debian.
This has always been the case (alredy under sysvinit)
Services which run during early boot need to make sure to explicitly
specify the orderings and dependencies.
In this case console-setup just needs to add the proper After= directive.
Why this hasn't happened yet is unclear to me. Please poke the
console-setup maintainer about this.

Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20180719/507e2402/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list