[systemd-devel] /media as tmpfs

Tollef Fog Heen tfheen at err.no
Tue Mar 27 07:53:18 PDT 2012


]] Gustavo Sverzut Barbieri 

> On Tue, Mar 27, 2012 at 10:36 AM, Tollef Fog Heen <tfheen at err.no> wrote:
> >
> > Hi,
> >
> > why is /media a tmpfs?  I think that violates user expectations that
> > /media will be persistent across reboots, in particular any directories
> > created and such.
> 
> It is expected that /media will contain directories for mountpoints,
> mostly created automatically based on media name.

That's not what the FHS says, though.  It just says it's for «removable
media», which can be more or less anything those days, including network
mounts which you use with automount.

> Then it makes sense to make it volatile and allows / to be read-only.

If you want / to be read only, make it a symlink into /run/media and
have a tmpfiles.d snippet that enables it?

I think removing directories from /media on reboot is violating the
principle of least surprise.

Cheers,
-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


More information about the systemd-devel mailing list