summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/security/ecryptfs
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2017-02-16 11:31:30 +0100
committerRobin Gloster <mail@glob.in>2017-02-16 11:35:41 +0100
commit790e5bf4d8aac5da407274350712b402b5d73c89 (patch)
tree7c066d2f99b9250de41fce10987173c58bce9b15 /pkgs/tools/security/ecryptfs
parentde31599f3f82dcee60b24c68c05258ce80017336 (diff)
ecryptfs: fix after security wrapper change
The replacements matched to much due to wrapperDir having `/bin` in its path now. cc #16654
Diffstat (limited to 'pkgs/tools/security/ecryptfs')
-rw-r--r--pkgs/tools/security/ecryptfs/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/security/ecryptfs/default.nix b/pkgs/tools/security/ecryptfs/default.nix
index ab4867a4cc81..f8ef409813cc 100644
--- a/pkgs/tools/security/ecryptfs/default.nix
+++ b/pkgs/tools/security/ecryptfs/default.nix
@@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
FILES="$(grep -r '/bin/sh' src/utils -l; find src -name \*.c)"
for file in $FILES; do
substituteInPlace "$file" \
+ --replace /bin/mount ${utillinux}/bin/mount \
+ --replace /bin/umount ${utillinux}/bin/umount \
--replace /sbin/mount.ecryptfs_private ${wrapperDir}/mount.ecryptfs_private \
--replace /sbin/umount.ecryptfs_private ${wrapperDir}/umount.ecryptfs_private \
--replace /sbin/mount.ecryptfs $out/sbin/mount.ecryptfs \
@@ -26,8 +28,6 @@ stdenv.mkDerivation rec {
--replace /usr/bin/ecryptfs-setup-private $out/bin/ecryptfs-setup-private \
--replace /sbin/cryptsetup ${cryptsetup}/sbin/cryptsetup \
--replace /sbin/dmsetup ${lvm2}/sbin/dmsetup \
- --replace /bin/mount ${utillinux}/bin/mount \
- --replace /bin/umount ${utillinux}/bin/umount \
--replace /sbin/unix_chkpwd ${wrapperDir}/unix_chkpwd \
--replace /bin/bash ${bash}/bin/bash
done