From fea7be516898f30e92f8d76c10ff38497c0bbf84 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 28 Dec 2015 11:30:53 +0100 Subject: [PATCH] Fixed result of Libisofs_mjg_boot_for_grub2 with original grub-mkrescue options --- libisofs/system_area.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libisofs/system_area.c b/libisofs/system_area.c index 702c96f..3dcf57b 100644 --- a/libisofs/system_area.c +++ b/libisofs/system_area.c @@ -2090,7 +2090,8 @@ int iso_write_system_area(Ecma119Image *t, uint8_t *buf) } /* Prevent MBR partition type 0xee */ - if (sa_type == 0 && ((t->system_area_options & 3) || risk_of_ee)) { + if (sa_type == 0 && ((t->system_area_options & 3) || risk_of_ee) && + (t->have_appended_partitions || t->gpt_req_count == 0)) { #else