New -boot_image setting mbr_force_bootable=, -as mkisofs --mbr-force-bootable

This commit is contained in:
2016-01-01 17:28:46 +00:00
parent 631c2aa00f
commit 0fd1023809
13 changed files with 264 additions and 121 deletions

View File

@ -1260,6 +1260,19 @@ treatment_patch:;
else
xorriso->system_area_options|= 0x4000;
} else if(strncmp(treatpt, "mbr_force_bootable=", 19) == 0) {
if(strcmp(treatpt + 19, "off") == 0) {
xorriso->system_area_options&= ~(1 << 15);
} else if(strcmp(treatpt + 19, "on") == 0) {
xorriso->system_area_options|= (1 << 15);
} else {
sprintf(xorriso->info_text,
"-boot_image %s mbr_force_bootable=: unknown mode : %s",
formpt, treatpt + 19);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
{ret= 0; goto ex;}
}
} else
was_ok= 0;