From ab428dce14f3dacd61e073eba14a9a9c9fcdde03 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sat, 6 Feb 2016 13:46:52 +0200 Subject: [PATCH] stage-1: Remove doublePatchelf hack No longer needed with the new patchelf version. --- nixos/modules/system/boot/stage-1.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index 7e84dd204773..5e6554324ca4 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -31,7 +31,6 @@ let extraUtils = pkgs.runCommand "extra-utils" { buildInputs = [pkgs.nukeReferences]; allowedReferences = [ "out" ]; # prevent accidents like glibc being included in the initrd - doublePatchelf = pkgs.stdenv.isArm; } '' set +o pipefail @@ -111,9 +110,6 @@ let if ! test -L $i; then echo "patching $i..." patchelf --set-interpreter $out/lib/ld*.so.? --set-rpath $out/lib $i || true - if [ -n "$doublePatchelf" ]; then - patchelf --set-interpreter $out/lib/ld*.so.? --set-rpath $out/lib $i || true - fi fi done