Skip to content

feature request for DevicePath parse to support sub type 0x03 #342

Description

@nkraetzschmar

Currently the DevicePath parse function only supports TYPE_MEDIA sub type 0x04 (MEDIA_FILEPATH_DP)1, however, booting with systemd boot stub requires sub type 0x03 (MEDIA_VENDOR_DP) with LoadImage2.

At the moment this causes boot with a UKI using the systemd boot stub to fail with:

[ERROR] Unexpected end of device path
Error loading kernel image: Unsupported
PANIC: panicked at src/main.rs:290:5:
Unable to boot from any virtio-blk device

It would be great if this sub type could be supported to allow UKI booting.

Footnotes

  1. https://github.com/cloud-hypervisor/rust-hypervisor-firmware/blob/bd9d7dc0e7f78b9627988a22f08f086424d54226/src/efi/device_path.rs#L27

  2. https://github.com/systemd/systemd/blob/11d5e2b5fbf9f6bfa5763fd45b56829ad4f0777f/src/boot/efi/linux.c#L58

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions