summary refs log tree commit diff
path: root/pkgs/tools/filesystems
diff options
context:
space:
mode:
authorajs124 <git@ajs124.de>2020-05-09 20:32:35 +0200
committerajs124 <git@ajs124.de>2020-05-09 20:32:37 +0200
commit2be47f021aa0625b674669df11b9990147e9014b (patch)
treecc3b43d9b1e54509c465bb872469bb26481d8952 /pkgs/tools/filesystems
parentbe75ae5a1e5106bbb27a12e5506f3e0e402abf59 (diff)
downloadnixpkgs-2be47f021aa0625b674669df11b9990147e9014b.tar
nixpkgs-2be47f021aa0625b674669df11b9990147e9014b.tar.gz
nixpkgs-2be47f021aa0625b674669df11b9990147e9014b.tar.bz2
nixpkgs-2be47f021aa0625b674669df11b9990147e9014b.tar.lz
nixpkgs-2be47f021aa0625b674669df11b9990147e9014b.tar.xz
nixpkgs-2be47f021aa0625b674669df11b9990147e9014b.tar.zst
nixpkgs-2be47f021aa0625b674669df11b9990147e9014b.zip
glusterfs: fix snapshots
Diffstat (limited to 'pkgs/tools/filesystems')
-rw-r--r--pkgs/tools/filesystems/glusterfs/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/glusterfs/default.nix b/pkgs/tools/filesystems/glusterfs/default.nix
index fa7574767d8..e64069af2ae 100644
--- a/pkgs/tools/filesystems/glusterfs/default.nix
+++ b/pkgs/tools/filesystems/glusterfs/default.nix
@@ -73,6 +73,12 @@ stdenv.mkDerivation
 
   postPatch = ''
     sed -e '/chmod u+s/d' -i contrib/fuse-util/Makefile.am
+    substituteInPlace libglusterfs/src/glusterfs/lvm-defaults.h \
+      --replace '/sbin/' '${lvm2}/bin/'
+    substituteInPlace libglusterfs/src/glusterfs/compat.h \
+      --replace '/bin/umount' '${utillinux}/bin/umount'
+    substituteInPlace contrib/fuse-lib/mount-gluster-compat.h \
+      --replace '/bin/mount' '${utillinux}/bin/mount'
   '';
 
    # Note that the VERSION file is something that is present in release tarballs