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 | _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel