From 24bb06069f1b979f3b516ac10c6d43cbac48db34 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 28 Jan 2024 11:56:36 +0100 Subject: [PATCH] compressFirmwareXz: fail on broken symlinks This would have caught the last two issues we had with compression. --- pkgs/build-support/kernel/compress-firmware-xz.nix | 3 +++ 1 file changed, 3 insertions(+) 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 -- '{}' '+' ''