[systemd-devel] stacked automounts
Michael Olbrich
m.olbrich at pengutronix.de
Sun Nov 26 21:42:09 UTC 2017
On Fri, Nov 24, 2017 at 09:03:23PM +0100, Olaf Hering wrote:
> Is there a way to have stacked automounts?
Not really.
> In this example only /d is mounted when /d/l/1/ is accessed:
>
> LABEL=d /d xfs noatime,x-systemd.automount,x-systemd.idle-timeout=22 1 2
> /d/i/1.iso /d/l/1 iso9660 ro,loop,x-systemd.automount,x-systemd.idle-timeout=11 0 0
>
> In the logs I see:
> Set up automount d-l-1.automount.
> Unset automount d-l-1.automount.
Systemd mounts a autofs for each automount
filesystem. In this case this means autofs is mounted to /d/l/1 so the real
filesystem for /d is mounted at boot-time. So using x-systemd.automount for
/d is pointless. It's mounted immediately and cannot expire.
Which version are you using? I tested this with some tmpfs and it works as
expected with systemd v235.
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the systemd-devel
mailing list