Mount /tmp on tmpfs jessie and stretch -- howto?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I would like in my jessie and stretch boxes (one of each, both with
systemd) to mount /tmp on tmpfs instead of a hard drive partition tmp
or /dev/mapper/SOL1-tmp. I assumed that to do so I could not have
either of those partitions; so I unmounted them and then deleted them
as a partition or as part of a LVM as the case may be.
I then created a created a line in /etc/fstab as follows:
tmpfs /tmp/ tmpfs nodev,nosuid,size=20% 0 0. When I rebooted I
received dependency errors.
In addition to the line above /etc/fstab still had a line
/dev/mapper/SOL1-tmp /tmp ext2 defaults 0 2.
However, df shows the first line (tmpfs /tmp etc.), but not the second
(/dev/mapper/SOL1-tmp etc.)
Obviously something is wrong but what? I know that file
/etc/default/tempfs cannot be used in systemd, but I am at a loss to
know what if anything replaces it in systemd. Apparently it is not
enough to add the tmpfs /tmp tmpfs etc line in /etc/fstab or run
"systemctl enable tmp.mount".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlfGHiUACgkQlNlJzOkJmTceiACcCZfxiTfMOQ1i8n/gm1ZBQvTB
rf8AnjBT3QkxzIk85aLQmZc9Yw3wMoJR
=wWwi
-----END PGP SIGNATURE-----
Reply to: