You are not logged in.

#1 2024-03-05 04:37:57

genericity
Member
Registered: 2014-09-20
Posts: 29

[SOLVED] How to patch DSDT after mkinitcpio:38?

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

#2 2024-03-05 08:45:39

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 599

Re: [SOLVED] How to patch DSDT after mkinitcpio:38?

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

#3 2024-03-05 13:09:01

genericity
Member
Registered: 2014-09-20
Posts: 29

Re: [SOLVED] How to patch DSDT after mkinitcpio:38?

Thanks!

`add_file` actually works in my case, when I set the main initrd to be uncompressed.

Offline

#4 2024-03-05 13:19:08

genericity
Member
Registered: 2014-09-20
Posts: 29

Re: [SOLVED] How to patch DSDT after mkinitcpio:38?

Offline

Board footer

Powered by FluxBB