Letting -report_system_area propose --mbr-force-bootable more often

This commit is contained in:
Thomas Schmitt 2018-09-09 15:04:05 +02:00
parent 7add4133d2
commit 8765230b75
2 changed files with 9 additions and 3 deletions

View File

@ -1672,6 +1672,7 @@ static int Xorriso_scan_report_lines(struct XorrisO *xorriso,
char *volid, *crt, *mdt, *ext, *eft, uuid[17], *uuid_time; char *volid, *crt, *mdt, *ext, *eft, uuid[17], *uuid_time;
char **app_pseudo_paths= NULL; char **app_pseudo_paths= NULL;
struct tm tm_erg; struct tm tm_erg;
int was_force_bootable= 0;
struct mbr_par { struct mbr_par {
uint8_t ptype; uint8_t ptype;
@ -2099,8 +2100,13 @@ static int Xorriso_scan_report_lines(struct XorrisO *xorriso,
Xorriso_add_intvl_adr(xorriso, buf, (uint64_t) start_block, Xorriso_add_intvl_adr(xorriso, buf, (uint64_t) start_block,
((uint64_t) start_block) + num_blocks - 1, "d", ((uint64_t) start_block) + num_blocks - 1, "d",
imported_iso); imported_iso);
} else if((part_status & 0x80) && part_type == 0x00 && }
start_block == 0 && num_blocks == 1) { if((part_status & 0x80) && !was_force_bootable) {
was_force_bootable= 1;
if(buf[0]) {
Xorriso_record_cmd_linE
buf[0]= 0;
}
if(mkisofs) if(mkisofs)
sprintf(buf, "--mbr-force-bootable"); sprintf(buf, "--mbr-force-bootable");
else else

View File

@ -1 +1 @@
#define Xorriso_timestamP "2018.09.09.125911" #define Xorriso_timestamP "2018.09.09.130316"