|
|
|
|
|
by simoncion
131 days ago
|
|
> How do we determine that a specific instance of a filesystem mount is "remote", or even requires a "network"? The '_netdev' option works a treat on sane systems. From mount(8): _netdev
The filesystem resides on a device that requires network access
(used to prevent the system from attempting to mount these
filesystems until the network has been enabled on the system).
It should work on SystemD and is documented to in systemd.mount Mount units referring to local and network file systems are distinguished by their file system type specification. In some cases this is not sufficient (for example network block device based mounts, such as iSCSI), in which case _netdev may be added to the mount option string of the unit, which forces systemd to consider the mount unit a network mount.
but -surprise surprise- it doesn't reliably work as documented because SystemD is full of accidental complexity. |
|