mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 10:24:49 +00:00
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 <JPEWhacker@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
95811666ae
commit
55a4244372
1 changed files with 1 additions and 1 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Add table
Reference in a new issue