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

Arnaud Rebillout arnaud.rebillout at collabora.com
Thu Jul 19 10:47:14 BST 2018


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>

It seems to me that just dropping the patch would solve the issue.

This patch was introduced after this discussion:
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675422>

The discussion doesn't actually give much rational about the patch.

Thanks,

  Arnaud

-- Package-specific info:

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.16.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd depends on:
ii  adduser          3.117
ii  libacl1          2.2.52-3+b1
ii  libapparmor1     2.12-5
ii  libaudit1        1:2.8.3-1+b1
ii  libblkid1        2.32-0.1
ii  libc6            2.27-3
ii  libcap2          1:2.25-1.2
ii  libcryptsetup12  2:2.0.3-4
ii  libgcrypt20      1.8.3-1
ii  libgnutls30      3.5.18-1
ii  libgpg-error0    1.32-1
ii  libidn11         1.33-2.2
ii  libip4tc0        1.6.2-1
ii  libkmod2         25-1
ii  liblz4-1         1.8.2-1
ii  liblzma5         5.2.2-1.3
ii  libmount1        2.32-0.1
ii  libpam0g         1.1.8-3.7
ii  libseccomp2      2.3.3-3
ii  libselinux1      2.8-1+b1
ii  libsystemd0      239-5
ii  mount            2.32-0.1
ii  procps           2:3.3.15-2
ii  util-linux       2.32-0.1

Versions of packages systemd recommends:
ii  dbus            1.12.8-3
ii  libpam-systemd  239-5

Versions of packages systemd suggests:
ii  policykit-1        0.105-21
ii  systemd-container  239-5

Versions of packages systemd is related to:
pn  dracut           <none>
ii  initramfs-tools  0.130
ii  udev             239-5

-- no debconf information



More information about the Pkg-systemd-maintainers mailing list