spec: include kernel-specific firmware dir in initramfs
This commit is contained in:
parent
fa53c91147
commit
4e13372d7e
@ -315,6 +315,11 @@ if [ "%{build_flavor}" == "pvops" ]; then
|
|||||||
mkdir -p %buildroot/lib/firmware
|
mkdir -p %buildroot/lib/firmware
|
||||||
mv %buildroot/lib/firmware-all %buildroot/lib/firmware/%kernelrelease
|
mv %buildroot/lib/firmware-all %buildroot/lib/firmware/%kernelrelease
|
||||||
fi
|
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
|
# Prepare initramfs for Qubes VM
|
||||||
mkdir -p %buildroot/%vm_install_dir
|
mkdir -p %buildroot/%vm_install_dir
|
||||||
/sbin/dracut --nomdadmconf --nolvmconf \
|
/sbin/dracut --nomdadmconf --nolvmconf \
|
||||||
@ -372,6 +377,7 @@ fi
|
|||||||
%attr(0644, root, root) /boot/vmlinuz-%{kernelrelease}
|
%attr(0644, root, root) /boot/vmlinuz-%{kernelrelease}
|
||||||
/lib/firmware/%{kernelrelease}
|
/lib/firmware/%{kernelrelease}
|
||||||
/lib/modules/%{kernelrelease}
|
/lib/modules/%{kernelrelease}
|
||||||
|
/etc/dracut.conf.d/firmware-%kernelrelease.conf
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files necessary for building kernel modules
|
Summary: Development files necessary for building kernel modules
|
||||||
|
Loading…
Reference in New Issue
Block a user