Skip to content

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 corrosponding network filesystem on the fly

License

Notifications You must be signed in to change notification settings

miles969/systemd-automount-template

Repository files navigation

systemd-automount-template

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:

  1. Save the files in /etc/systemd/system (I haven't managed to make these work as user units)
  2. Edit the template files to reflect your network mount details and create the necessary mountpoints.
  3. Rename the templates to reflect their local mountpoint.
  4. enable the .automount file to install the automount service.
  5. systemctl daemon-reload and systemctl start the automount service (or reboot)
  6. cd or ls the local mountpoint to test

About

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 corrosponding network filesystem on the fly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published