Bug fix: -boot_image grub grub2_mbr= did not work (but -as mkisofs --grub2-mbr did work)
This commit is contained in:
@ -968,6 +968,7 @@ treatment_patch:;
|
||||
ret= Xorriso_set_system_area_path(xorriso, treatpt + 12, 0);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
xorriso->system_area_options&= ~0x4000;
|
||||
|
||||
} else if(strncmp(treatpt, "partition_table=", 16)==0) {
|
||||
if(strcmp(treatpt + 16, "off") == 0) {
|
||||
@ -1175,24 +1176,15 @@ treatment_patch:;
|
||||
|
||||
#endif /* ! Xorriso_with_isohybriD */
|
||||
|
||||
} else if(strncmp(treatpt, "grub2_mbr=", 9) == 0 &&
|
||||
strcmp(formpt, "grub")==0) {
|
||||
|
||||
if(strcmp(treatpt + 9, "off") == 0)
|
||||
} else if(strncmp(treatpt, "grub2_mbr=", 10) == 0) {
|
||||
ret= Xorriso_set_system_area_path(xorriso, treatpt + 10, 0);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
if(treatpt [10] == 0)
|
||||
xorriso->system_area_options&= ~0x4000;
|
||||
else if(strcmp(treatpt + 9, "on") == 0)
|
||||
else
|
||||
xorriso->system_area_options=
|
||||
(xorriso->system_area_options & ~2) | 0x4000;
|
||||
else {
|
||||
sprintf(xorriso->info_text,
|
||||
"Unrecognized keyword with -boot_image %s %s",
|
||||
form, treatment);
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||
sprintf(xorriso->info_text,
|
||||
"Allowed with grub2_mbr= are: off , on");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "HINT", 0);
|
||||
{ret= 0; goto ex;}
|
||||
}
|
||||
|
||||
} else
|
||||
was_ok= 0;
|
||||
|
Reference in New Issue
Block a user