bazil / fuse

FUSE library for Go.  go get bazil.org/fuse  
http://bazil.org/fuse
Other
1.6k stars 266 forks source link

fusermount3 not found on all systems - fall back to fusermount? #298

Open ncw opened 1 year ago

ncw commented 1 year ago

In 74781b187bb40affe1675a239dea27792890ed32 the library was changed to use fusermount3 instead of fusermount.

This library is used by rclone as part of the rclone mount command. This is run on a huge variety of hardware and rclone users have discovered quite a few places where fusermount3 is not found. Here is a non-exhaustive list:

However a solution seems to be to make a symlink

ln -s /bin/fusermount /bin/fusermount3

In the commit it says

For now, we're choosing not to include a backwards compatible path, trying both names. fusermount3 apparently has been a thing since 2013, so you've had plenty of time to get it installed. If this causes issues, please let us know, backwards compatibility can be added as needed.

It would make rclone users lives a little easier if bazil/fuse could look for fusermount as well as fusermount3.

tv42 commented 1 year ago

fusermount3 was released in 2013.

Ubuntu 18.04 is end of life next month. I would suggest upgrading urgently, you will not be getting security updates anymore. Really, you should have upgraded 6 months ago already, 22.04 is LTS.

Needing to install fuse userspace components to use fuse is understandable and in many cases unavoidable, as far as I'm concerned. On some platforms, you even need to configure files in /etc or such to get things to work, so consider yourself lucky if you can simply make rclone.deb bring in the dependencies it needs. (I wish there was a pure-kernel mount API, not needing to spawn these helper processes!)

DSM 7 seems to be a Debian fork, and probably based on ancient Debian too.. but more importantly, it's not really meant to contain software not used by the NAS itself, it's an "appliance OS". You might want to look into running whatever you need in a VM or container.

Leaving this open & collecting feedback. I'm not thrilled about adding untested code paths that were outdated about a decade ago, and won't do it lightly.

roisiano commented 1 year ago

I had this problem using CoreELEC ( https://coreelec.org/ ) , and, in this system for Amlogic TV-Boxes (CoreELEC versions): ln -s /usr/bin/fusermount /usr/bin/fusermount3 is NOT possible to create the symlink ("Read only filesystem"). https://discourse.coreelec.org/t/is-it-possible-to-create-a-symlink-in-usr-bin/26133/3

So, I would be interested, too.

Kind regards