RFC on Cloud Images: Make /tmp a tmpfs

Martin Pitt martin.pitt at ubuntu.com
Wed Jan 27 07:16:17 UTC 2016


Robie Basak [2016-01-25 19:25 +0000]:
> 1) Make the option available but non-default on cloud images.
> 2) Make the option available and default on cloud images (so opt-out).

As for "making available": you can append "none /tmp tmpfs defaults 0 0"
to /etc/fstab, as already mentioned. But if modifying fstab is
impractical/unsafe for some reason, the following also works:

  systemctl link /usr/share/systemd/tmp.mount

which is just a glorified way of doing

  ln -s /usr/share/systemd/tmp.mount /etc/systemd/system/tmp.mount

Conversely, disabling this would just be

  systemctl disable tmp.mount

or

  rm -f /etc/systemd/system/tmp.mount

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20160127/f18dc712/attachment.pgp>


More information about the ubuntu-devel mailing list