New boot_specs efi_boot_part, prep_boot_part, chrp_boot_part
This commit is contained in:
@ -1012,6 +1012,28 @@ treatment_patch:;
|
||||
memcpy(xorriso->hfsp_serial_number, sn, 8);
|
||||
}
|
||||
|
||||
} else if(strncmp(treatpt, "efi_boot_part=", 14) == 0) {
|
||||
if(Sfile_str(xorriso->efi_boot_partition, treatpt + 14, 0) <= 0)
|
||||
{ret= -1; goto ex;}
|
||||
|
||||
} else if(strncmp(treatpt, "prep_boot_part=", 15) == 0) {
|
||||
if(Sfile_str(xorriso->prep_partition, treatpt + 15, 0) <= 0)
|
||||
{ret= -1; goto ex;}
|
||||
|
||||
} else if(strncmp(treatpt, "chrp_boot_part=", 15) == 0) {
|
||||
if(strcmp(treatpt + 15, "on") == 0) {
|
||||
xorriso->system_area_options= (xorriso->system_area_options & ~0x3cfc) |
|
||||
0x400;
|
||||
} else if(strcmp(treatpt + 15, "off") == 0) {
|
||||
xorriso->system_area_options= xorriso->system_area_options & ~0x3c00;
|
||||
} else {
|
||||
sprintf(xorriso->info_text,
|
||||
"-boot_image %s chrp_boot_part: unknown mode : %s",
|
||||
formpt, treatpt + 15);
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
||||
{ret= 0; goto ex;}
|
||||
}
|
||||
|
||||
} else if(strncmp(treatpt, "isohybrid=", 10) == 0 &&
|
||||
strcmp(formpt, "isolinux")==0) {
|
||||
|
||||
|
Reference in New Issue
Block a user