From: Daan De Meyer Date: Fri, 1 Dec 2023 14:14:26 +0000 (+0100) Subject: mkosi-initrd: Include firmware from host as well X-Git-Tag: v20~114^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfa8a6bb264b237507ca7dd9d3c4444786679af5;p=thirdparty%2Fmkosi.git mkosi-initrd: Include firmware from host as well Some modules don't work without the corresponding firmware, so make sure we copy in the corresponding firmware from the host as well. --- diff --git a/kernel-install/50-mkosi-initrd.install b/kernel-install/50-mkosi-initrd.install index 5e6cbd890..c677598ea 100644 --- a/kernel-install/50-mkosi-initrd.install +++ b/kernel-install/50-mkosi-initrd.install @@ -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"