[systemd-devel] [PATCH 08/10] units: make it possible to disable tmp.mount using systemctl

Lennart Poettering lennart at poettering.net
Wed Jul 16 07:59:00 PDT 2014


On Wed, 16.07.14 12:09, Jon Severinsson (jon at severinsson.net) wrote:

> From: Michael Stapelberg <michael at stapelberg.de>
> 
> But enable it by default in make install and systemd preset.

THis wouldn't work the way you might expect. RequiresMountsFor= and
suchlike would still pull in the mount unit, regardless if it is enabled
or not.

The ability to mask the unit, plus the ability to override it via
/etc/fstab should be enough.

(Also I see little point in /tmp not being a tmpfs anyway. If you want a
lot of space there, then use swap -- of which you can have up to 2G even
on 32bit systems. tmpfs on on swap has the great benefit that it
relieves the kernel from always having to utimately flush things to disk)

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list