spec: include kernel-specific firmware dir in initramfs
This commit is contained in:
parent
3deafdf8aa
commit
5db5dca21b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user