From 397551f9d4419e4ca2e01e316914e186d331b539 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 22 Jul 2019 20:14:53 +0200 Subject: [PATCH] With report_system_area of iso_mbr_part_type: give MBR precedence over GPT --- xorriso/iso_img.c | 19 ++++++++++--------- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/xorriso/iso_img.c b/xorriso/iso_img.c index d45abbaf..c1e94e4b 100644 --- a/xorriso/iso_img.c +++ b/xorriso/iso_img.c @@ -2494,7 +2494,16 @@ static int Xorriso_scan_report_lines(struct XorrisO *xorriso, Xorriso_record_cmd_linE did_sysarea= 1; } - if(iso_gpt_part_idx >= 0) { + if(iso_mbr_part_type >= 0) { + if(mkisofs) + sprintf(buf, "-iso_mbr_part_type 0x%2.2x", + (unsigned int) iso_mbr_part_type); + else + sprintf(buf, "-boot_image any iso_mbr_part_type=0x%2.2x", + (unsigned int) iso_mbr_part_type); + Xorriso_record_cmd_linE + + } else if(iso_gpt_part_idx >= 0) { if(mkisofs) sprintf(buf, "-iso_mbr_part_type "); else @@ -2503,14 +2512,6 @@ static int Xorriso_scan_report_lines(struct XorrisO *xorriso, 0); Xorriso_record_cmd_linE - } else if(iso_mbr_part_type >= 0) { - if(mkisofs) - sprintf(buf, "-iso_mbr_part_type 0x%2.2x", - (unsigned int) iso_mbr_part_type); - else - sprintf(buf, "-boot_image any iso_mbr_part_type=0x%2.2x", - (unsigned int) iso_mbr_part_type); - Xorriso_record_cmd_linE } /* Issue commands related to El Torito */ diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 4b676d1e..40cb0d3f 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2019.07.13.153027" +#define Xorriso_timestamP "2019.07.22.181418"