Bug fix: Protective MBR for GPT could emerge with boot flag set.

This commit is contained in:
Thomas Schmitt 2017-01-03 12:54:54 +01:00
parent 3043b5f660
commit 215280448f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {