[PATCH 0/2] Fix 'mbr' command with hybrid MBR/GPT

Joshua Watt
2023-06-24T23:55:42Z

When dealing with a hybrid MBR/GPT partition table, the 'mbr' command
would misbehave because it was reading the GPT partitions instead of
reading from the MBR when verifying. Fix this by forcing 'mbr verify' to
read MBR partitions.

Joshua Watt (2):
disk: part: Add API to get partitions with specific driver
cmd: mbr: Force DOS driver to be used for verify

cmd/mbr.c | 2 +-
disk/part.c | 38 +++++++++++++++++++++++++++++++-------
include/part.h | 2 ++
3 files changed, 34 insertions(+), 8 deletions(-)

--
2.33.0