nixos/boot/stage-1: chase symlinks when copying binaries
The split of util-linux into further outputs (#236463) resulted in ${util-linux.bin}/bin/mount becoming a symlink. This broke zfs in some cases.
This commit is contained in:
parent
6cee3b5893
commit
dd2a892144
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue