mount: Added _netdev to the example mount so it gets treated as a remote-fs rather than local-fs

Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
This commit is contained in:
Anagh Kumar Baranwal 2023-06-23 19:42:19 +05:30 committed by Nick Craig-Wood
parent 9f3694cea3
commit d06bb55f3f

View file

@ -407,18 +407,20 @@ mount sftp1:subdir /mnt/data -t rclone -o vfs_cache_mode=writes,sftp_key_file=/p
or create systemd mount units: or create systemd mount units:
||| |||
# /etc/systemd/system/mnt-data.mount # /etc/systemd/system/mnt-data.mount
[Unit]
Description=Mount for /mnt/data
[Mount] [Mount]
Type=rclone Type=rclone
What=sftp1:subdir What=sftp1:subdir
Where=/mnt/data Where=/mnt/data
Options=rw,allow_other,args2env,vfs-cache-mode=writes,config=/etc/rclone.conf,cache-dir=/var/rclone Options=rw,_netdev,allow_other,args2env,vfs-cache-mode=writes,config=/etc/rclone.conf,cache-dir=/var/rclone
||| |||
optionally accompanied by systemd automount unit optionally accompanied by systemd automount unit
||| |||
# /etc/systemd/system/mnt-data.automount # /etc/systemd/system/mnt-data.automount
[Unit] [Unit]
Before=remote-fs.target Description=AutoMount for /mnt/data
[Automount] [Automount]
Where=/mnt/data Where=/mnt/data
TimeoutIdleSec=600 TimeoutIdleSec=600