summary refs log tree commit diff
path: root/pkgs/tools/filesystems/bindfs/default.nix
diff options
context:
space:
mode:
authorBalletie <skip_meesie@hotmail.com>2016-03-29 16:40:11 +0200
committerBalletie <skip_meesie@hotmail.com>2016-03-29 16:40:11 +0200
commitd852a23662f31df25c0712bf4af66cf7216a3a38 (patch)
tree92f681cc9e0bfe416afd837f27b375c095d2a1b4 /pkgs/tools/filesystems/bindfs/default.nix
parentd9b98b6b50261cd768bc595d68c91448d36b8692 (diff)
downloadnixpkgs-d852a23662f31df25c0712bf4af66cf7216a3a38.tar
nixpkgs-d852a23662f31df25c0712bf4af66cf7216a3a38.tar.gz
nixpkgs-d852a23662f31df25c0712bf4af66cf7216a3a38.tar.bz2
nixpkgs-d852a23662f31df25c0712bf4af66cf7216a3a38.tar.lz
nixpkgs-d852a23662f31df25c0712bf4af66cf7216a3a38.tar.xz
nixpkgs-d852a23662f31df25c0712bf4af66cf7216a3a38.tar.zst
nixpkgs-d852a23662f31df25c0712bf4af66cf7216a3a38.zip
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.
Diffstat (limited to 'pkgs/tools/filesystems/bindfs/default.nix')
-rw-r--r--pkgs/tools/filesystems/bindfs/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/bindfs/default.nix b/pkgs/tools/filesystems/bindfs/default.nix
index 7d79eefb122..80027c7a047 100644
--- a/pkgs/tools/filesystems/bindfs/default.nix
+++ b/pkgs/tools/filesystems/bindfs/default.nix
@@ -12,6 +12,9 @@ stdenv.mkDerivation rec {
   dontStrip = true;
 
   buildInputs = [ fuse pkgconfig ];
+  postFixup = ''
+    ln -s $out/bin/bindfs $out/bin/mount.fuse.bindfs
+  '';
 
   meta = {
     description = "A FUSE filesystem for mounting a directory to another location";