efi: devicepath: add support for mbr partition.
PATCH 1/1 efi: devicepath: add support for mbr partition.
From: Chali Anis <[email protected]>
Add support for mbr partition for loading barebox from usb key or even from qemu fat partition as an efi payload.
Signed-off-by Chali Anis <[email protected]>
--- efi/devicepath.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
efi/devicepath.c +2 -1
@@ -802,7 +802,8 @@ char *device_path_to_partuuid(const struct efi_device_path *dev_path)struct efi_device_path_hard_drive_path *hd = (struct efi_device_path_hard_drive_path *)dev_path; -if (hd->signature_type !=SIGNATURE_TYPE_GUID ) +if (hd->signature_type !=SIGNATURE_TYPE_GUID && + hd->signature_type !=SIGNATURE_TYPE_MBR )continue ;return xasprintf ("%pUl" , (efi_guid_t *)&(hd->signature[0 ]));
Signature · 1 line
2.34.1
Sascha Hauer
AppliedQuoted 4 lines · On Fri, 22 Aug 2025 15:20:14 -0400, [email protected] wrote:
Add support for mbr partition for loading barebox from usb key or even from qemu fat partition as an efi payload.
Applied, thanks!
[1/1] efi: devicepath: add support for mbr partition.
https://git.pengutronix.de/cgit/barebox/commit/?id=b8428217d22e (link may not be stable)
Best regards,
Signature · 1 line
Sascha Hauer <[email protected]>