diff --git a/kernel.spec b/kernel.spec index bbccf1b..d9521ef 100644 --- a/kernel.spec +++ b/kernel.spec @@ -314,6 +314,11 @@ if [ "%{build_flavor}" == "pvops" ]; then mkdir -p %buildroot/lib/firmware mv %buildroot/lib/firmware-all %buildroot/lib/firmware/%kernelrelease fi + +# Include firmware in initramfs +mkdir -p %buildroot/etc/dracut.conf.d +echo "fw_dir+=\"/lib/firmware/%kernelrelease\"" > %buildroot/etc/dracut.conf.d/firmware-%kernelrelease.conf + # Prepare initramfs for Qubes VM mkdir -p %buildroot/%vm_install_dir /sbin/dracut --nomdadmconf --nolvmconf \ @@ -371,6 +376,7 @@ fi %attr(0644, root, root) /boot/vmlinuz-%{kernelrelease} /lib/firmware/%{kernelrelease} /lib/modules/%{kernelrelease} +/etc/dracut.conf.d/firmware-%kernelrelease.conf %package devel Summary: Development files necessary for building kernel modules