]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
mkosi-initrd: Include firmware from host as well
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 1 Dec 2023 14:14:26 +0000 (15:14 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 4 Dec 2023 07:15:32 +0000 (08:15 +0100)
Some modules don't work without the corresponding firmware, so make
sure we copy in the corresponding firmware from the host as well.

kernel-install/50-mkosi-initrd.install

index 5e6cbd8904cc0b26a4ca51364ae896474e3fc106..c677598ea44ae0e3043013577b9c63aceafb6ad0 100644 (file)
@@ -30,7 +30,8 @@ case "$COMMAND" in
                   --workspace-dir=/var/tmp \
                   --cache-dir=/var/cache \
                   --output-dir="$KERNEL_INSTALL_STAGING_AREA" \
-                  --extra-tree="/usr/lib/modules/${KERNEL_VERSION}:/usr/lib/modules/${KERNEL_VERSION}"
+                  --extra-tree="/usr/lib/modules/${KERNEL_VERSION}:/usr/lib/modules/${KERNEL_VERSION}" \
+                  --extra-tree="/usr/lib/firmware:/usr/lib/firmware"
 
             rm "${KERNEL_INSTALL_STAGING_AREA}/initrd"
             mv -v "${KERNEL_INSTALL_STAGING_AREA}"/initrd_*.cpio.zst "${KERNEL_INSTALL_STAGING_AREA}/initrd"