mkinitcpio: do not try to decompress nonexistent firmware

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

Loading