Xen early CPU microcode loading
Packages amd-ucode and intel-ucode install their respective cpio archives to /boot/.
You can tell Xen to scan for and load an unarchived binary blob early by adding ucode=scan to the Xen kernel command line.
To enable Xen to find the microcode I manually unarchive the image every time the -ucode package is updated, /# cpio -div < /boot/*-ucode.img
, and the blob will be extracted into kernel/x86/microcode/. I then have a /etc/mkinitfs/features.d/ucode.files:
/kernel/x86/microcode
and include that in the feature set in /etc/mkinitfs/mkinitfs.conf to include the blob in the initramfs image.
How could this best be automated?
Edited by omni