From 215280448fb61829283b2ab3c46ceff4b04d5464 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 3 Jan 2017 12:54:54 +0100 Subject: [PATCH] Bug fix: Protective MBR for GPT could emerge with boot flag set. --- libisofs/system_area.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libisofs/system_area.c b/libisofs/system_area.c index 5ef3e21..b36009b 100644 --- a/libisofs/system_area.c +++ b/libisofs/system_area.c @@ -287,7 +287,7 @@ int make_grub_msdos_label(uint32_t img_blocks, int sph, int hpc, buf[510] = 0x55; buf[511] = 0xAA; } - if (!(flag & 2)) { + if ((!(flag & 2)) && part_type != 0xee && part_type != 0xef) { /* 3) Put 0x80 (for bootable partition), */ *(wpt++) = 0x80; } else {