Skip to content

hooks: Add Support for Microcode Injection (ucode) #8

Description

@sighook

Summary:

Introduce a post‑generation hook (ucode.post) to embed CPU microcode updates into the initramfs image.

Details:

  • Implement a .post hook (see Refactor process_hooks to support pre/post phases #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    Status
    Tools

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions