Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH 0/3] kexec: Add support for UKI format kernel #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Oct 14, 2024

  1. kexec: Introduce implicit_initrd_fd to pass internal initrd information

    At present, initrd information is passed through --initrd args, and
    handled until image load. But for the UKI case, the initrd may be stored
    implicitly in the .initrd section.
    
    It means that initrd is perceived at the probe stage. And there should
    be a way to carry this information forward to the load stage. In oder to
    implement that, introducing a global implicit_initrd_fd.
    
    Signed-off-by: Pingfan Liu <[email protected]>
    Pingfan Liu committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    0ba1079 View commit details
    Browse the repository at this point in the history
  2. kexec: Introduce UKI image parser

    A UKI image is a PE file that consists of several sections, typically
    including: .text, .data, .linux, .initrd, .cmdline, and others.
    
    The kernel image is stored in the .linux section, which is one of the
    formats currently recognized by kexec-tools. Therefore, the UKI parser
    can be used to strip away the UKI layer, allowing the other parser to
    continue the procession of the kernel image.
    
    Signed-off-by: Pingfan Liu <[email protected]>
    Pingfan Liu committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    b6e172a View commit details
    Browse the repository at this point in the history
  3. arm64: Support UKI image format

    Signed-off-by: Pingfan Liu <[email protected]>
    Pingfan Liu committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    dc2e74b View commit details
    Browse the repository at this point in the history