From e8ed0bdb9db353399699392f17f28a60cf0151f5 Mon Sep 17 00:00:00 2001 From: Ivan Andreev Date: Sun, 22 Sep 2019 18:10:22 +0300 Subject: [PATCH] describe shortcomings --- rclone-fstab-mount-helper-script.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rclone-fstab-mount-helper-script.md b/rclone-fstab-mount-helper-script.md index a38e5ec..fa2ca18 100644 --- a/rclone-fstab-mount-helper-script.md +++ b/rclone-fstab-mount-helper-script.md @@ -35,11 +35,11 @@ To enable mounting a volume using rclone via an entry in fstab the following hel # exec rclone trans="$trans $remote $mountpoint" + # NOTE: do not try "mount --daemon" here, it does not play well with systemd automount, use '&'! PATH=$PATH rclone mount $trans /dev/null 2>/dev/null & - out=`ls -l $dst` - until [ "$out" != 'total 0' ]; do - out=`ls -l $dst` + # WARNING: this will loop forever if remote is actually empty! + until [ "`ls -l $mountpoint`" != 'total 0' ]; do sleep 1 done