New -boot_image bootspecs grub2_mbr= and grub2_boot_info=

This commit is contained in:
2013-04-13 07:42:18 +00:00
parent 92ec54105f
commit fe245e7131
5 changed files with 54 additions and 5 deletions

View File

@ -2365,7 +2365,7 @@ int Xorriso_set_isolinux_options(struct XorrisO *xorriso,
}
/* bit0 : 1=boot-info-table , bit2-7 : 1=EFI , 2=HFS+ , bit8 : 1=APM */
patch_table = xorriso->patch_isolinux_image & 0x1fd;
patch_table = xorriso->patch_isolinux_image & 0x3fd;
if((flag & 1) && num_boots > 1) {
ret= el_torito_set_isolinux_options(boots[num_boots - 1], patch_table, 0);
ret= (ret == 1); goto ex;
@ -2374,7 +2374,7 @@ int Xorriso_set_isolinux_options(struct XorrisO *xorriso,
/* Handle patching of first attached boot image or of imported boot images
*/
for(i= 0; i < num_boots; i++) {
patch_table = xorriso->patch_isolinux_image & 0x1fd;
patch_table = xorriso->patch_isolinux_image & 0x3fd;
if(patch_table && !(flag & 1)) {
if(!el_torito_seems_boot_info_table(boots[i], 0))
patch_table&= ~1;