The question remains, how can we follow the Linux Filesystem Hierarchy Standard, which states clearly:BitJam wrote: Sun Dec 23, 2018 1:49 am It is okay for /tmp to be tmpfs because there is no guarantee that files under /tmp will survive a reboot.
As within the installed system we do have currently /tmp symlinked => /var/tmp and by this we do not follow the standard,Chapter: 3.18. /tmp : Temporary files wrote:Although data stored in /tmp may be deleted in a site-specific manner, it is recommended that files and directories located in /tmp be deleted whenever the system is booted.
as we must not delete /var/tmp on reboot, and hence cannot clear /tmp on reboot.
Suggest to change our current default to have /tmp not symlinked to /var/tmp but keep it as separate /tmp folder.
And we make sure that the default deletion of files in /tmp are activated ( e.g. in /etc/default/rcS ).
If users than want to have /tmp put as tmpfs into shared memory we might add a commented line into /etc/fstab
something like:
Code: Select all
#uncomment to have /tmp as temporary filesystem that resides in memory
#tmpfs /tmp tmpfs defaults,mode=1777 0 0
