* [PATCH] efi: devicepath: add support for mbr partition.
@ 2025-08-22 19:20 chalianis1
0 siblings, 0 replies; only message in thread
From: chalianis1 @ 2025-08-22 19:20 UTC (permalink / raw)
To: s.hauer; +Cc: barebox, Chali Anis
From: Chali Anis <chalianis1@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@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-23 8:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-22 19:20 [PATCH] efi: devicepath: add support for mbr partition chalianis1
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox