New -boot_image bootspec appended_part_as=apm, part_like_isohybrid=on

This commit is contained in:
2016-02-05 10:06:25 +00:00
parent f3b55f2864
commit a3ca89beb4
10 changed files with 154 additions and 67 deletions

View File

@ -1,7 +1,7 @@
/* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
Copyright 2007-2015 Thomas Schmitt, <scdbackup@gmx.net>
Copyright 2007-2016 Thomas Schmitt, <scdbackup@gmx.net>
Provided under GPL version 2 or later.
@ -1068,9 +1068,20 @@ treatment_patch:;
xorriso->appended_as_gpt = 1;
} else if(strcmp(treatpt + 17, "mbr") == 0) {
xorriso->appended_as_gpt = 0;
xorriso->appended_as_apm = 0;
} else if(strcmp(treatpt + 17, "apm") == 0) {
xorriso->appended_as_apm = 1;
} else
was_ok= 0;
} else if(strncmp(treatpt, "part_like_isohybrid=", 20) == 0) {
if(strcmp(treatpt + 20, "on") == 0)
xorriso->part_like_isohybrid= 1;
else if(strcmp(treatpt + 20, "off") == 0)
xorriso->part_like_isohybrid= 0;
else
was_ok= 0;
} else if(strncmp(treatpt, "partition_hd_cyl=", 17)==0) {
u= 0;
sscanf(treatpt + 17, "%u", &u);