mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
compressFirmwareXz: fix with empty lib/firmware
Fixes:8aa8e0ce7f("nixos/udev: compress all firmware if supported") (cherry picked from commit76405e3077)
This commit is contained in:
committed by
github-actions[bot]
parent
99acd989ad
commit
6fd97eadd7
@@ -7,7 +7,7 @@ runCommand "${firmware.name}-xz" {} ''
|
||||
(cd ${firmware} && find lib/firmware -type d -print0) |
|
||||
(cd $out && xargs -0 mkdir -v --)
|
||||
(cd ${firmware} && find lib/firmware -type f -print0) |
|
||||
(cd $out && xargs -0tP "$NIX_BUILD_CORES" -n1 \
|
||||
(cd $out && xargs -0rtP "$NIX_BUILD_CORES" -n1 \
|
||||
sh -c 'xz -9c -T1 -C crc32 --lzma2=dict=2MiB "${firmware}/$1" > "$1.xz"' --)
|
||||
(cd ${firmware} && find lib/firmware -type l) | while read link; do
|
||||
target="$(readlink "${firmware}/$link")"
|
||||
|
||||
Reference in New Issue
Block a user