You are not logged in.
I used to patch DSDT (https://wiki.archlinux.org/title/DSDT) of my laptop through the "default_microcode=" option in my UKI presets. But now "mkinitcpio" complains about "WARNING: Deprecated option '/boot/acpi-override.img' found. Update '/etc/mkinitcpio.d/linux-lts.preset' to use the 'microcode' hook instead."
I tried to make a hook that add the patch into initrd through "add_file", but seems kernel requires the patch in an uncompressed initrd. Setting "COMPRESSION=cat" in "/etc/mkinitcpio.conf" works, despite producing large UKI files.
So I wonder if there's some other way to add a custom image to the front of the main initrd, just like the old "--microcode" option does?
Last edited by genericity (2024-03-06 07:02:27)
Offline
add_file will not work. There is currently no function to add files to the early initramfs image, so you need to copy them to "${EARLYROOT}/" using regular shell commands.
See also archlinux/mkinitcpio/mkinitcpio#255 and archlinux/mkinitcpio/mkinitcpio#242.
Offline
Thanks!
`add_file` actually works in my case, when I set the main initrd to be uncompressed.
Offline
Can confirm that https://aur.archlinux.org/packages/mkinitcpio-dsdt-hook works.
Offline
mkinitcpio 39 ships with an acpi_override hook. Now you don't need to install additional hooks from AUR.
Offline