Moin, On Mon, 22 Jun 2020, 17:34:55 +0200, Jan Ritzerfeld wrote:
Am Montag, 22. Juni 2020, 16:41:50 CEST schrieb ich:
Hey,
for many years I've been using the following steps to mount /tmp via tmpfs: 1. Removing tmp from /etc/fstab 2. mkdir -p /etc/systemd/system/local-fs.target.wants 3. ln -s /usr/lib/systemd/system/tmp.mount /etc/systemd/system/local-fs.target.wants/tmp.mount
Recently, I installed Tumbleweed on a spare partition for testing purposes and this trick stopped working. There is no /tmp mounted anymore and the system won't boot successfully.
Any ideas?
You're both right, Jan and Andreas. Instead of looking into the bash history, I blindly copied the instructions from an very old mail into this one :-D https://lists.opensuse.org/opensuse/2013-07/msg00141.html
So, on Leap 15.1 and current TW my step 3 actually is: ln -s /usr/share/systemd/tmp.mount /etc/systemd/system/local-fs.target.wants/tmp.mount
That worked for Leap 15.1 but not for TW.
I certainly don't want to start (another) flamewar against systemd, but what's wrong with putting this into /etc/fstab: tmpfs /tmp tmpfs mode=1777,uid=0,gid=0 0 0 Used to work since decades.
Gruß Jan
Cheers. l8er manfred