Confused about microcode hook

I’m a bit confused about the need of microcode in mkinitcpio.conf

it must be there?

my system work fine also without the microcode hook

if I remember well, in the past months we have to add it and after sometimes we have to removed it, now is there again…

that make me confused :woozy_face:

I dont think you are remembering correctly.

The microcode hook was not an option for mkinitcpio until recently.

Manjaro kernels used to have microcode lines in the prefix files.

Now you can use a microcode hook. And you should remove the lines from your kernel prefix files.

This will all probably have been apparent from pacnews as well.

What is microcode?

See all about it here:

https://wiki.archlinux.org/title/Microcode

2 Likes

which lines?
are they some of this?

# lsinitcpio --early /boot/initramfs-6.9-x86_64.img
early_cpio
kernel/
kernel/x86/
kernel/x86/microcode/
kernel/x86/microcode/GenuineIntel.bin

I bet you would see via pacnews.

pacdiff -o

But preset files are elsewhere…

$ cat /etc/mkinitcpio.d/linux*
# mkinitcpio preset file for the '6.6-x86_64' package

#ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-6.6-x86_64"
#ALL_microcode=(/boot/*-ucode.img)
[...]

I’ve already merged the pacnew keeping my old hooks…

anything to remove here?

$ cat /etc/mkinitcpio.d/linux*
# mkinitcpio preset file for the '6.6-x86_64' package

#ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-6.6-x86_64"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-6.6-x86_64.img"
#default_uki="/efi/EFI/Linux/manjaro-6.6-x86_64.efi"
#default_options="--splash /usr/share/systemd/bootctl/splash-manjaro.bmp"

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-6.6-x86_64-fallback.img"
#fallback_uki="/efi/EFI/Linux/manjaro-6.6-x86_64-fallback.efi"
fallback_options="-S autodetect"
# mkinitcpio preset file for the '6.9-x86_64' package

#ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-6.9-x86_64"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-6.9-x86_64.img"
#default_uki="/efi/EFI/Linux/manjaro-6.9-x86_64.efi"
#default_options="--splash /usr/share/systemd/bootctl/splash-manjaro.bmp"

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-6.9-x86_64-fallback.img"
#fallback_uki="/efi/EFI/Linux/manjaro-6.9-x86_64-fallback.efi"
fallback_options="-S autodetect"

nothing to remove
but now load microcode in /boot/grub/grub.cfg is optional, for a future grub version… it will be removed
ps: or in future mkinitcpio ? read hook /usr/lib/initcpio/install/microcode

2 Likes

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.