Bug#807769: systemd: /tmp mounted as tmpfs without user asking for it

Michael Biebl biebl at debian.org
Sun Dec 13 01:19:17 GMT 2015

Am 12.12.2015 um 17:31 schrieb Sanjoy Mahajan:

> A bunch of reasonably important iceweasel-downloaded .pdf files in /tmp
> suddenly disappeared.  I feared that I had misconfigured the
> /etc/tmpfiles.d/tmp.conf and allowed automatic cleaning, but that file
> was correct (prevented /tmp cleaning):
>   # Automatically migrated from TMPTIME in /etc/default/rcS
>   #d /var/tmp 1777 root root -
>   d /tmp 1777 root root -


> I got back my /tmp files by unmounting /tmp, so all was well.  But how
> should I prevent it from happening again?  I don't want /tmp on tmpfs.
> Should I just set PrivateTmp=no in that config?

Have you read the comments in /etc/tmpfiles.d/tmp.conf ?
You previously already had tmpfs-on-/tmp under sysvinit as you've set it
in /etc/default/rcS. This setting was migrated when systemd was installed.
Are you saying this setting was incorrectly migrated?
Can you attach your /etc/default/rcS?

As for your question:
If you want to get rid of tmpfs-on-/tmp, run systemctl disable tmp.mount
and then rm /etc/tmpfiles.d/tmp.conf

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: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20151213/e7d06871/attachment-0002.sig>

More information about the Pkg-systemd-maintainers mailing list