Skip to contentSkip to conversation

efi: devicepath: add support for mbr partition.

PATCH Applied [email protected] 2 participants 2 messages Aug 23, 2025 – Aug 27, 2025

lore
Share & tools
lore
#0 lore raw

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.

---
 efi/devicepath.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
efi/devicepath.c +2 -1
index 342422ea1a11..b80d5639afbf 100644
@@ -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