Skip to content

mkinitcpio: do not try to decompress nonexistent firmware

nl6720 requested to merge nl6720/mkinitcpio:fix-decompress_firmware into master

If the firmware directories do not exist, the find command gets passed an empty array making it search in the current directory instead. This results in uncompressing all .zstd files in the current directory tree.

Make sure decompress_firmware does not run if there are no firmware directories and make sure find is passed a directory to seach in.

Fixes: 4dd9fded ("mkinitcpio: use MODULES_DECOMPRESS to also control firmware file decompression")

Merge request reports