mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
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:
parent
aab52d9bc9
commit
6bb43e7b37
@ -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##*/})"
|
||||
|
Loading…
Reference in New Issue
Block a user