Signed-off-by: Franck Jullien <franck.jullien@xxxxxxxxx> --- common/partitions.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/common/partitions.c b/common/partitions.c index 0e42937..85bca32 100644 --- a/common/partitions.c +++ b/common/partitions.c @@ -28,6 +28,7 @@ #include <asm/unaligned.h> #include <disks.h> #include <dma.h> +#include <filetype.h> struct partition { uint64_t first_sec; @@ -85,7 +86,7 @@ static void __maybe_unused try_dos_partition(struct block_device *blk, goto on_error; } - if ((buffer[510] != 0x55) || (buffer[511] != 0xAA)) { + if(is_fat_or_mbr(buffer, NULL) != filetype_mbr) { dev_info(blk->dev, "No partition table found\n"); goto on_error; } -- 1.7.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox