diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2012-03-27 17:13:05 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2012-03-27 17:30:41 +0200 |
commit | 623ac9d2fce3170125ead9be20f56bfe68ea125e (patch) | |
tree | 7f7affdc219e6d502aff46c1eaa600d0defb187c /units | |
parent | units: get rid of var-run.mount and var-lock.mount (diff) | |
download | systemd-623ac9d2fce3170125ead9be20f56bfe68ea125e.tar.xz systemd-623ac9d2fce3170125ead9be20f56bfe68ea125e.zip |
units: mount /tmp as tmpfs
The default setups should be a stateless as possible. /tmp as tmpfs is
the intended default for general purpose systems.
Small temporary files should not be stored on disk; lager files, or
files which should potentially survive a reboot, belong into /var/tmp.
Also catch up with some good old UNIX history.
More details are here:
https://fedoraproject.org/wiki/Features/tmp-on-tmpfs
Diffstat (limited to 'units')
-rw-r--r-- | units/tmp.mount | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/units/tmp.mount b/units/tmp.mount new file mode 100644 index 0000000000..8d0b8afb17 --- /dev/null +++ b/units/tmp.mount @@ -0,0 +1,16 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=Temporary Directory +Before=local-fs.target + +[Mount] +What=tmpfs +Where=/tmp +Type=tmpfs +Options=mode=1777 |