From: chalianis1@gmail.com
To: s.hauer@pengutronix.de
Cc: barebox@lists.infradead.org, Chali Anis <chalianis1@gmail.com>
Subject: [PATCH] efi: devicepath: add support for mbr partition.
Date: Fri, 22 Aug 2025 15:20:14 -0400 [thread overview]
Message-ID: <20250822192014.209689-1-chalianis1@gmail.com> (raw)
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
reply other threads:[~2025-08-23 8:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250822192014.209689-1-chalianis1@gmail.com \
--to=chalianis1@gmail.com \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox