[rclone] add symlink to the rclone binary

Hi!

I’ve installed rclone using dietpi-software. Great! :slight_smile:

I tried to mount a cloud storage space using fstab but it failed due to a missing symlink. This symlink is needed to enable the OS find the rclone binary for executing rcloud’s mount directive in fstab.

The rcloud docs also expain this:

rclone by default expects GNU-style flags --key val. To run it as a mount helper you should symlink rclone binary to /sbin/mount.rclone and optionally /usr/bin/rclonefs, e.g. ln -s /usr/bin/rclone /sbin/mount.rclone. rclone will detect it and translate command-line arguments appropriately.

URL: rclone mount

So my request is to just add this symlink in DietPi’s installation script for rclone to avoid that error source of failing mounts. :slight_smile:

Hmm, if this is generally support, I wonder whether this should be instead done upstream. Here is the config for the package content: rclone/bin/nfpm.yaml at e76a30471a961115598a70588d21a6e1ae889245 · rclone/rclone · GitHub
mount.rclone is specific enough to avoid file conflicts, and if there are any, dpkg would throw a respective error. Better than if we add this our end, which might cause issues if they decide to do it later, install a file there, and potentially overwrite the symlink target.

Could be also made a topic here, to clarify whether this has been decided against already, and if so why: Issues · rclone/rclone · GitHub