On Fri, 2021-06-18 at 19:26 -0600, Chris Murphy wrote:
I make fstab mount options include:
nofail,noauto,x-systemd.automount
That way it is only mounted on demand, i.e. when the mount point is
"touched".
It's also possible to use x-systemd.idle-timeout=300 which will
unmount it after 5 minutes idle.
I use a systemd <device>.mount because I need a "Wants" line to trigger
my power-down script. There doesn't appear to be a way to do this via
/etc/fstab.
Also, there appears to be no way to set "nofail" *without* using
/etc/fstab.
poc