Am 23.02.2014 22:04, schrieb Michael Biebl:
>> cat >/etc/systemd/system/run-user.mount.d/size.cfg <<'EOT'
>> [Mount]
>> Options=nodev,noexec,nosuid,size=52428800,mode=0755
>> EOT
> 
> There was a typo here, the .d snippets need to be named .conf, not .cfg.
> So a proper name would be
> 
> /etc/systemd/system/run-user.mount.d/size.conf
> 
> If you rename the file and reboot, is the size properly set?
> 

Btw, Michael Stapelberg is correct that using foo.d/bar.conf override
snippets is the idiomatic way in systemd to extend/override options in
systemd units


In this particular case I actually would recommend to do something else,
though:

Use an /etc/fstab entry if you need custom settings for any of the mount
points. Systemd will automatically prefer /etc/fstab entries over native
.mount units.

The benefit of /etc/fstab is, that this works irregardless of the init
system you use and is an established mechanism.

Fwiw, that is the main reason why I don't like those tunables in
/etc/default/tmpfs at all and why I think we shouldn't try to support
them in systemd.



Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to