sys-kernel/coreos-firmware: include compressed modules

When listing kernel modules to decide which firmware should be shipped
together with the image, we need to now list both compressed and
uncompressed module.

Fixes: kinvolk/Flatcar#359
This commit is contained in:
Margarita Manterola 2021-03-08 12:18:27 +01:00
parent aab52d9bc9
commit 6bb43e7b37

View File

@ -99,7 +99,7 @@ src_prepare() {
einfo "Scanning for files required by ${KV_FULL}"
echo -n > "${T}/firmware-scan"
local kofile fwfile failed
for kofile in $(find "${kernel_mods}" -name '*.ko'); do
for kofile in $(find "${kernel_mods}" -name '*.ko' -o -name '*.ko.xz'); do
for fwfile in $(modinfo --field firmware "${kofile}"); do
if [[ ! -e "${fwfile}" ]]; then
eerror "Missing firmware: ${fwfile} (${kofile##*/})"