These 2 templates can be used to automount network filesystems without editing fstab. It uses systemd's automount function to monitor access requests to local mountpoints and mount the corresponding network filesystem on the fly
Usage:
- Save the files in /etc/systemd/system (I haven't managed to make these work as user units)
- Edit the template files to reflect your network mount details and create the necessary mountpoints.
- Rename the templates to reflect their local mountpoint.
- enable the .automount file to install the automount service.
- systemctl daemon-reload and systemctl start the automount service (or reboot)
- cd or ls the local mountpoint to test