New -boot_image bootspec appended_gpt_with_gaps=

This commit is contained in:
2024-12-16 18:21:28 +01:00
parent 2049dfc996
commit 6deb2435ab
8 changed files with 179 additions and 78 deletions

View File

@ -1234,6 +1234,16 @@ interval_text_long:;
if(was_ok)
is_change= 1;
} else if(strncmp(treatpt, "appended_gpt_with_gaps=", 23) == 0) {
if(strcmp(treatpt + 23, "on") == 0) {
xorriso->iso_mbr_part_flag |= 2;
} else if(strcmp(treatpt + 23, "off") == 0) {
xorriso->iso_mbr_part_flag &= ~2;
} else
was_ok= 0;
if(was_ok)
is_change= 1;
} else if(strncmp(treatpt, "gpt_disk_guid=", 14) == 0) {
ret= Xorriso_parse_gpt_guid(xorriso, treatpt + 14, 0);
if(ret <= 0)