On 01/28/2016 02:46 AM, Walter Cazzola wrote:
On Wed, 27 Jan 2016, Gordon Messmer wrote:

If you'd like to use tmpfs now, you can "systemctl enable tmp.mount" and comment out the /tmp item you currently have in fstab.

unfortunately this didn't work

   > systemctl enable tmp.mount
The unit files have no [Install] section. They are not meant to be enabled
   using systemctl.

That's weird...

# tail -3 /usr/lib/systemd/system/tmp.mount
# Make 'systemctl enable tmp.mount' work:
[Install]
WantedBy=local-fs.target


But I've solved it by manually adding
   tmpfs  /tmp tmpfs rw,seclabel 0 0
to /etc/fstab and commenting the line used to mount the old /tmp
partition.

Obviously that works, but it'll be mounted later in the boot process.

Thinking about it... it's possible that /tmp on tmpfs is actually mounted by default, without needing to "enable" it specifically, and that the only requirement is that you don't specify any other filesystem for /tmp in fstab. If you're curious, try it. Comment out /tmp in fstab and see what you get when you reboot.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to