3 ms·
> 3. Network filesystems exist. And they can become unavailable for a time. See [1] > the same applies to remote file system mounts. If you want them to be mo
by e-khadem 1y ago
> 3. Network filesystems exist. And they can become unavailable for a time.
See [1]
> the same applies to remote file system mounts. If you want them to be mounted only upon access, you will need to use the x-systemd.automount parameters. In addition, you can use the x-systemd.mount-timeout= option to specify how long systemd should wait for the mount command to finish. Also, the _netdev option ensures systemd understands that the mount is network dependent and order it after the network is online.
> You may also specify an idle timeout for a mount with the x-systemd.idle-timeout flag.
[1] https://wiki.archlinux.org/title/Fstab#Automount_with_systemd https://wiki.archlinux.org/title/Fstab#Automount_with_system...
- cyberax 1y ago> Note that this option can only be used in /etc/fstab, and will be ignored when part of the Options= setting in a unit file. What did I say about consistency (or more precisely, the lack thereof)?