**Summary:** Introduce a post‑generation hook (`ucode.post`) to embed CPU microcode updates into the initramfs image. **Details:** - Implement a `.post` hook (see #7). - Hook should detect and include microcode blobs (e.g., `intel-ucode`, `amd-ucode`) into the final image. - Ensure compatibility with existing kernel boot parameters (`initrd=` chain loading). - Provide documentation in `mkinitramfs.hooks(7)` and examples in `mkinitramfs.config(5)` for enabling ucode injection. - Error handling: fail gracefully if microcode packages are missing. **Benefit:** Allows early CPU microcode updates to be applied during boot, improving stability and security. --- As reference can be used illiliti's tinyramfs ucode hook: https://github.com/illiliti/tinyramfs/tree/master/hook/ucode
Summary:
Introduce a post‑generation hook (
ucode.post) to embed CPU microcode updates into the initramfs image.Details:
.posthook (see Refactorprocess_hooksto support pre/post phases #7).intel-ucode,amd-ucode) into the final image.initrd=chain loading).mkinitramfs.hooks(7)and examples inmkinitramfs.config(5)for enabling ucode injection.Benefit:
Allows early CPU microcode updates to be applied during boot, improving stability and security.
As reference can be used illiliti's tinyramfs ucode hook:
https://github.com/illiliti/tinyramfs/tree/master/hook/ucode