From 7e34a9c397b8950aeaedb1a11ae76536a979bc5f Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Thu, 20 Apr 2017 08:38:55 +0100 Subject: [PATCH] util-linux: fix path to umount in eject --- pkgs/os-specific/linux/util-linux/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/os-specific/linux/util-linux/default.nix b/pkgs/os-specific/linux/util-linux/default.nix index 872a1897457c..9126a1cdec3d 100644 --- a/pkgs/os-specific/linux/util-linux/default.nix +++ b/pkgs/os-specific/linux/util-linux/default.nix @@ -20,6 +20,8 @@ stdenv.mkDerivation rec { postPatch = '' substituteInPlace include/pathnames.h \ --replace "/bin/login" "${shadow}/bin/login" + substituteInPlace sys-utils/eject.c \ + --replace "/bin/umount" "$out/bin/umount" ''; crossAttrs = {