diff options
| author | Joshua Watt <[email protected]> | 2023-07-03 08:39:56 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-07-17 16:20:08 -0400 |
| commit | 55a424437226f9ef50c3e829dafa6b494377d018 (patch) | |
| tree | 68abf9ef18b38c76d1eb51216761b18f2d1d20bf /cmd | |
| parent | 95811666ae9b1ff6228410629f209721d1ca91a8 (diff) | |
cmd: mbr: Force DOS driver to be used for verify
Forces the DOS partition type driver to be used when verifying the MBR.
This is particularly useful when using a hybrid MBR & GPT layout as
otherwise MBR verification would mostly likely fail since the GPT
partitions will be returned, even if the MBR is actually valid.
Signed-off-by: Joshua Watt <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/mbr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mbr.c b/cmd/mbr.c index c269833eb82..ec99b662834 100644 --- a/cmd/mbr.c +++ b/cmd/mbr.c @@ -244,7 +244,7 @@ static int do_verify_mbr(struct blk_desc *dev, const char *str) for (i = 0; i < count; i++) { struct disk_partition p; - if (part_get_info(dev, i + 1, &p)) + if (part_get_info_by_type(dev, i + 1, PART_TYPE_DOS, &p)) goto fail; if ((partitions[i].size && p.size != partitions[i].size) || |
