They seem to have changed the hierarchy of autofs config files or
something and it just stopped working for me. Looking for what changed
and ran into systemd.mount on stack exchange.
Short form:
write an entry in /etc/fstab like this:
nas:/data/directory /home/me/nas nfs nfsvers=4,nofail,x-systemd.automount 0 0
To activate this entry immediately, you would need two commands:
# systemctl daemon-reload # trigger systemd-fstab-generator to
re-make *.mount and *.automount units
# systemctl start home-me-nas.automount #start the newly created
automount unit or just reboot.
$ man systemd.mount
$ man systemd-fstab-generator
Reveal much about units created, still playing with it. The above
lines clipped from:
https://unix.stackexchange.com/questions/671486/rhel-8-3-autofs-not-mountin…