[Pkg-systemd-maintainers] Bug#739574: Bug#739574: marked as done (initscripts: No setting for the size of /run/user)

Michael Biebl biebl at debian.org
Sun Feb 23 21:14:29 GMT 2014


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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140223/2095b615/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list