summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-03-05 17:03:40 -0600
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2018-03-06 15:13:56 +0200
commitece4c62d4b3f6f53935ece6b9cd5efe644cee79b (patch)
treebd4b4b9e2193c836b2a11e6f5daaec39a87392f6
parent0e6fc5c4e6ceaaf1f4f60089047511b9f94386ba (diff)
downloadnixlib-ece4c62d4b3f6f53935ece6b9cd5efe644cee79b.tar
nixlib-ece4c62d4b3f6f53935ece6b9cd5efe644cee79b.tar.gz
nixlib-ece4c62d4b3f6f53935ece6b9cd5efe644cee79b.tar.bz2
nixlib-ece4c62d4b3f6f53935ece6b9cd5efe644cee79b.tar.lz
nixlib-ece4c62d4b3f6f53935ece6b9cd5efe644cee79b.tar.xz
nixlib-ece4c62d4b3f6f53935ece6b9cd5efe644cee79b.tar.zst
nixlib-ece4c62d4b3f6f53935ece6b9cd5efe644cee79b.zip
make-bootstrap-tools: preserve coreutils symlinks
We go out of our way (see top of file) to build a single binary
with symlinks for all of the tools, but were losing them
when preparing the bootstrap tools.
-rw-r--r--pkgs/stdenv/linux/make-bootstrap-tools.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/stdenv/linux/make-bootstrap-tools.nix b/pkgs/stdenv/linux/make-bootstrap-tools.nix
index 8033d47d5db5..5522bc5dea25 100644
--- a/pkgs/stdenv/linux/make-bootstrap-tools.nix
+++ b/pkgs/stdenv/linux/make-bootstrap-tools.nix
@@ -88,7 +88,7 @@ in with pkgs; rec {
     '' else throw "unsupported libc for bootstrap tools")
     + ''
         # Copy coreutils, bash, etc.
-        cp ${coreutilsMinimal.out}/bin/* $out/bin
+        cp -d ${coreutilsMinimal.out}/bin/* $out/bin
         (cd $out/bin && rm vdir dir sha*sum pinky factor pathchk runcon shuf who whoami shred users)
 
         cp ${bash.out}/bin/bash $out/bin