[PATCH] efi: devicepath: add support for mbr partition.

chalianis1 at gmail.com chalianis1 at gmail.com
Fri Aug 22 12:20:14 PDT 2025


From: Chali Anis <chalianis1 at gmail.com>

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 at gmail.com>
---
 efi/devicepath.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/efi/devicepath.c b/efi/devicepath.c
index 342422ea1a11..b80d5639afbf 100644
--- a/efi/devicepath.c
+++ b/efi/devicepath.c
@@ -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]));
-- 
2.34.1




More information about the barebox mailing list