about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorAlyssa Ross2024-01-28 11:56:36 +0100
committergithub-actions[bot]2024-01-28 11:26:50 +0000
commitf279a2d4143a12f0b1ff604a2144a62a48d8ebb9 (patch)
tree62cd81ffb9d283f217525ec3bfc1b02de455f9db /pkgs/build-support
parent5a5248e80f7d8d9d415156b33f4353cb1c078c4c (diff)
compressFirmwareXz: fail on broken symlinks
This would have caught the last two issues we had with compression.

(cherry picked from commit 24bb06069f1b979f3b516ac10c6d43cbac48db34)
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/kernel/compress-firmware-xz.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/build-support/kernel/compress-firmware-xz.nix b/pkgs/build-support/kernel/compress-firmware-xz.nix
index 437c89afe184..2c8e84fdae4d 100644
--- a/pkgs/build-support/kernel/compress-firmware-xz.nix
+++ b/pkgs/build-support/kernel/compress-firmware-xz.nix
@@ -21,4 +21,7 @@ runCommand "${firmware.name}-xz" args ''
         ln -vs -- "''${target/^${firmware}/$out}" "$out/$link"
       fi
   done
+
+  echo "Checking for broken symlinks:"
+  find -L $out -type l -print -execdir false -- '{}' '+'
 ''