Skip to content

Commit 1ec237e

Browse files
committed
efi: devicepath: add support for mbr partition.
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 <chalianis1@gmail.com>
1 parent 0f17035 commit 1ec237e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

efi/devicepath.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,8 @@ char *device_path_to_partuuid(const struct efi_device_path *dev_path)
802802
struct efi_device_path_hard_drive_path *hd =
803803
(struct efi_device_path_hard_drive_path *)dev_path;
804804

805-
if (hd->signature_type != SIGNATURE_TYPE_GUID)
805+
if (hd->signature_type != SIGNATURE_TYPE_GUID &&
806+
hd->signature_type != SIGNATURE_TYPE_MBR)
806807
continue;
807808

808809
return xasprintf("%pUl", (efi_guid_t *)&(hd->signature[0]));

0 commit comments

Comments
 (0)