summaryrefslogtreecommitdiffstats
path: root/common/partitions.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/partitions.c')
-rw-r--r--common/partitions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/partitions.c b/common/partitions.c
index 694c6f6dd5..37d9cb7edc 100644
--- a/common/partitions.c
+++ b/common/partitions.c
@@ -107,6 +107,8 @@ static struct partition_parser *partition_parser_get_by_filetype(uint8_t *buf)
* useful for compatibility
*/
type = file_detect_partition_table(buf, SECTOR_SIZE);
+ if (type == filetype_fat && !is_fat_boot_sector(buf))
+ type = filetype_mbr;
list_for_each_entry(parser, &partition_parser_list, list) {
if (parser->type == type)