From d06bb55f3fe95aa605bbc8121f81b7d998239f8a Mon Sep 17 00:00:00 2001 From: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com> Date: Fri, 23 Jun 2023 19:42:19 +0530 Subject: [PATCH] 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> --- cmd/mountlib/help.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/mountlib/help.go b/cmd/mountlib/help.go index 09777b2e8..7e65d16d2 100644 --- a/cmd/mountlib/help.go +++ b/cmd/mountlib/help.go @@ -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: ||| # /etc/systemd/system/mnt-data.mount +[Unit] +Description=Mount for /mnt/data [Mount] Type=rclone What=sftp1:subdir 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 ||| # /etc/systemd/system/mnt-data.automount [Unit] -Before=remote-fs.target +Description=AutoMount for /mnt/data [Automount] Where=/mnt/data TimeoutIdleSec=600