Bug fix: -boot_image grub2_mbr= prevented -boot_image partition_table=on

This commit is contained in:
2014-04-04 15:35:34 +00:00
parent 1cec4a6f46
commit 720dc2406c
3 changed files with 30 additions and 13 deletions

View File

@ -1177,14 +1177,16 @@ treatment_patch:;
#endif /* ! Xorriso_with_isohybriD */
} else if(strncmp(treatpt, "grub2_mbr=", 10) == 0) {
ret= Xorriso_coordinate_system_area(xorriso, 0, (1 << 14), eff_path, 1 | 2);
if(ret <= 0)
goto ex;
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
xorriso->system_area_options=
(xorriso->system_area_options & ~2) | 0x4000;
xorriso->system_area_options|= 0x4000;
} else
was_ok= 0;