ChimeraOS / frzr

A deployment and automatic update mechanism for operating systems
MIT License
59 stars 14 forks source link

Support microcode hook #57

Closed NeroReflex closed 2 months ago

NeroReflex commented 7 months ago

Since February 2024 archlinux deprecated the usage of addending ucode initrd into bootloader configuration files such as

initrd /amd-ucode.img
initrd /intel-ucode.img

since those are included in the initramfs when mkinitcpio is run.

This PR scans /etc/mkinitcpio.conf (the same file that was used to generate the initramfs) and checks for microcode hook: if said hook is present entries in the systemd-boot configuration are not added.

This ensures end-user deployments are not using deprecated boot method.