mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-13 14:41:37 +01:00
sys-kernel/coreos-kernel: Add Fusion storage drivers back to initrd
The Fusion MPT SCSI storage drivers were missing from the new minimal initrd because they are not together with the other storage driver modules but live in their own "message/fusion/" folder. Add the "message/fusion/" folder to the initrd modules so that we can load the disk. Dependencies will be resolved by dracut-install as needed. Fixes https://github.com/flatcar/Flatcar/issues/1924 Signed-off-by: Kai Lueke <kailuke@microsoft.com>
This commit is contained in:
parent
44be28edb3
commit
26e698c425
1
changelog/bugfixes/2025-11-07-initrd-fusion-drivers.md
Normal file
1
changelog/bugfixes/2025-11-07-initrd-fusion-drivers.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
- Alpha only: Added Fusion SCSI disk drivers back to the initrd after they got lost in the rework ([Flatcar#1924](https://github.com/flatcar/Flatcar/issues/1924))
|
||||||
@ -116,7 +116,7 @@ src_compile() {
|
|||||||
cp "${S}"/build/bootengine/lib/modprobe.d/* lib/modprobe.d/ || die
|
cp "${S}"/build/bootengine/lib/modprobe.d/* lib/modprobe.d/ || die
|
||||||
# Only include modules related to mounting /usr and for interacting with the emergency console
|
# Only include modules related to mounting /usr and for interacting with the emergency console
|
||||||
pushd "${S}/build/bootengine/usr/lib/modules/${KV_FULL}" || die
|
pushd "${S}/build/bootengine/usr/lib/modules/${KV_FULL}" || die
|
||||||
find kernel/drivers/{ata,block,hid,hv,input/serio,mmc,nvme,pci,scsi,usb} kernel/fs/{btrfs,overlayfs,squashfs} kernel/security/keys -name "*.ko.*" -printf "%f\0" | DRACUT_NO_XATTR=1 xargs --null "${BROOT}"/usr/lib/dracut/dracut-install --destrootdir "${S}"/build/minimal --kerneldir . --sysrootdir "${S}"/build/bootengine/ --firmwaredirs "${S}"/build/bootengine/usr/lib/firmware --module dm-verity dm-mod virtio_console || die
|
find kernel/drivers/{ata,block,hid,hv,input/serio,message/fusion,mmc,nvme,pci,scsi,usb} kernel/fs/{btrfs,overlayfs,squashfs} kernel/security/keys -name "*.ko.*" -printf "%f\0" | DRACUT_NO_XATTR=1 xargs --null "${BROOT}"/usr/lib/dracut/dracut-install --destrootdir "${S}"/build/minimal --kerneldir . --sysrootdir "${S}"/build/bootengine/ --firmwaredirs "${S}"/build/bootengine/usr/lib/firmware --module dm-verity dm-mod virtio_console || die
|
||||||
popd || die
|
popd || die
|
||||||
# Double compression only makes the image bigger and slower
|
# Double compression only makes the image bigger and slower
|
||||||
find . -name "*.ko.xz" -exec unxz {} + || die
|
find . -name "*.ko.xz" -exec unxz {} + || die
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user