Merge pull request #244177 from DeterminateSystems/initrd-chase-symlinks

nixos/boot/stage-1: chase symlinks when copying binaries
This commit is contained in:
Linus Heckemann 2023-07-19 14:26:55 +02:00 committed by GitHub
commit 5016dee6b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ let
copy_bin_and_libs () {
[ -f "$out/bin/$(basename $1)" ] && rm "$out/bin/$(basename $1)"
cp -pdv $1 $out/bin
cp -pdvH $1 $out/bin
}
# Copy BusyBox.