From 86f6ffc9c9302c9f20268cbf0cfe406bb2a37017 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 19 Mar 2017 11:14:49 +0100 Subject: [PATCH] Let iso_mbr_part_type 0xee override ban on 0xee without GPT --- 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 d411ebd..6946f0b 100644 --- a/libisofs/system_area.c +++ b/libisofs/system_area.c @@ -2109,7 +2109,8 @@ int iso_write_system_area(Ecma119Image *t, uint8_t *buf) /* >>> ??? check for GPT magic number at byte 512 ff. ? */; if (sa_type == 0 && ((t->system_area_options & 3) || risk_of_ee) && - (t->opts->part_like_isohybrid || t->gpt_req_count == 0)) { + (t->opts->part_like_isohybrid || t->gpt_req_count == 0) && + t->opts->iso_mbr_part_type != 0xee) { for (i = 0; i < 4; i++) { if (buf[446 + 16 * i + 4] == 0xee) { iso_msgs_submit(0,