mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +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}"
|
einfo "Scanning for files required by ${KV_FULL}"
|
||||||
echo -n > "${T}/firmware-scan"
|
echo -n > "${T}/firmware-scan"
|
||||||
local kofile fwfile failed
|
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
|
for fwfile in $(modinfo --field firmware "${kofile}"); do
|
||||||
if [[ ! -e "${fwfile}" ]]; then
|
if [[ ! -e "${fwfile}" ]]; then
|
||||||
eerror "Missing firmware: ${fwfile} (${kofile##*/})"
|
eerror "Missing firmware: ${fwfile} (${kofile##*/})"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user