Currently we don't tell modinfo which kernel version to look at
when checking which firmware files a module may need. It will
default to the running kernel, not the one we're building the
initramfs for. So we may not copy all the necessary firmware
or we may provoke warnings in case a module doesn't exist in
the running kernel.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
hook-functions | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hook-functions b/hook-functions
index 1afb767..020af04 100644
--- a/hook-functions
+++ b/hook-functions
@@ -76,7 +76,7 @@ manual_add_modules()
fi
# Add required firmware
- for firmware in $(modinfo -F firmware "${kmod}"); do
+ for firmware in $(modinfo -k "${version}" -F firmware "${kmod}"); do
if [ -e "${DESTDIR}/lib/firmware/${firmware}" ] \
|| [ -e "${DESTDIR}/lib/firmware/${version}/${firmware}" ]; then
continue
--
Ben Hutchings
The two most common things in the universe are hydrogen and stupidity.
Attachment:
signature.asc
Description: This is a digitally signed message part