about summary refs log tree commit diff
path: root/nixos/modules/system/boot
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2023-07-17 22:13:49 +0200
committerLinus Heckemann <git@sphalerite.org>2023-07-17 22:13:49 +0200
commitdd2a8921445a52c60da1c48a479ea599c6f0ccd9 (patch)
treed6c37a534c362501e38950d2e606b53af726e6d0 /nixos/modules/system/boot
parent6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222 (diff)
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.
Diffstat (limited to 'nixos/modules/system/boot')
-rw-r--r--nixos/modules/system/boot/stage-1.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix
index eec3461de7e77..1e52bd9e02f77 100644
--- a/nixos/modules/system/boot/stage-1.nix
+++ b/nixos/modules/system/boot/stage-1.nix
@@ -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.