* [PATCH] fixup! blspec: factor out generic parts into bootscan helper
@ 2025-04-14 6:22 Ahmad Fatoum
2025-04-14 8:57 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-04-14 6:22 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
From: Ahmad Fatoum <a.fatoum@barebox.org>
blspec: fix detection of XBOOTLDR partitions
XBOOTLDR partitions are identified by a specific partition type or type
UUID, but this got broken during the rework to use bootscan, because we
are now iterating over partitions (partcdev) instead of all cdevs
beneath a device (cdev).
Fix this.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
common/blspec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/blspec.c b/common/blspec.c
index 373ad99a632c..5223ac30f8a5 100644
--- a/common/blspec.c
+++ b/common/blspec.c
@@ -510,8 +510,8 @@ static int blspec_scan_disk(struct bootscanner *scanner,
* partition with the MBR type id of 0xEA already exists it
* should be used as $BOOT
*/
- if (cdev_is_mbr_partitioned(cdev->master) && cdev->dos_partition_type == 0xea) {
- ret = boot_scan_cdev(scanner, bootentries, cdev);
+ if (cdev_is_mbr_partitioned(cdev) && partcdev->dos_partition_type == 0xea) {
+ ret = boot_scan_cdev(scanner, bootentries, partcdev);
if (ret == 0)
ret = -ENOENT;
--
2.39.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fixup! blspec: factor out generic parts into bootscan helper
2025-04-14 6:22 [PATCH] fixup! blspec: factor out generic parts into bootscan helper Ahmad Fatoum
@ 2025-04-14 8:57 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-04-14 8:57 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Mon, 14 Apr 2025 08:22:52 +0200, Ahmad Fatoum wrote:
> blspec: fix detection of XBOOTLDR partitions
>
> XBOOTLDR partitions are identified by a specific partition type or type
> UUID, but this got broken during the rework to use bootscan, because we
> are now iterating over partitions (partcdev) instead of all cdevs
> beneath a device (cdev).
>
> [...]
Applied, thanks!
[1/1] fixup! blspec: factor out generic parts into bootscan helper
https://git.pengutronix.de/cgit/barebox/commit/?id=9cd79ac9bca7 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-14 9:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-14 6:22 [PATCH] fixup! blspec: factor out generic parts into bootscan helper Ahmad Fatoum
2025-04-14 8:57 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox