bindfs: Let `mount` find `bindfs` mount helper
When mount is used with mount-type "fuse.bindfs", it cannot find the
mount helper.
If mount can't find `mount.fuse.bindfs`, it executes the `mount.fuse`
mount helper and passes `fuse.bindfs` as argument. Then `mount.fuse`
tries to execute `bindfs` on its own, but it is not found in the PATH.
By creating a `mount.fuse.bindfs` link to the `bindfs` executable, this
problem is avoided because `mount` will just execute the
`mount.fuse.bindfs` mount helper without `mount.fuse` in the middle.
commitd852a23662f31df25c0712bf4af66cf7216a3a38
authorBalletie <skip_meesie@hotmail.com>
dateTue 29 Mar 2016, 16:40 (11 years ago)
parentd9b98b6
pkgs/tools/filesystems/bindfs/default.nix+3
@@ -12,6 +12,9 @@ stdenv.mkDerivation rec {
1212 dontStrip = true;
1313
1414 buildInputs = [ fuse pkgconfig ];
15+ postFixup = ''
16+ ln -s $out/bin/bindfs $out/bin/mount.fuse.bindfs
17+ '';
1518
1619 meta = {
1720 description = "A FUSE filesystem for mounting a directory to another location";