New bootspec "gpt_disk_guid=", new -as mkisofs option --gpt_disk_guid, new -report_system_area mode "make_guid"
This commit is contained in:
@ -653,7 +653,6 @@ int Xorriso_genisofs_count_args(struct XorrisO *xorriso, int argc, char **argv,
|
||||
"-volid", "-old-exclude",
|
||||
"-alpha-boot", "-hppa-cmdline", "-hppa-kernel-32", "-hppa-kernel-64",
|
||||
"-hppa-bootloader", "-hppa-ramdisk", "-mips-boot", "-mipsel-boot",
|
||||
"-alpha-boot",
|
||||
"-jigdo-jigdo", "-jigdo-template", "-jigdo-min-file-size",
|
||||
"-jigdo-force-md5", "-jigdo-exclude", "-jigdo-map", "-md5-list",
|
||||
"-jigdo-template-compress",
|
||||
@ -665,7 +664,7 @@ int Xorriso_genisofs_count_args(struct XorrisO *xorriso, int argc, char **argv,
|
||||
"-hfsplus-block-size", "-apm-block-size", "--grub2-mbr",
|
||||
"--grub2-sparc-core", "--sort-weight-list", "--sort-weight-patterns",
|
||||
"-hppa-hdrversion", "-file_name_limit", "--set_all_file_dates",
|
||||
""
|
||||
"--gpt_disk_guid", ""
|
||||
};
|
||||
static char arg2_options[][41]= {
|
||||
"-hfs-bless-by", "--scdbackup_tag", "--sort-weight",
|
||||
@ -874,6 +873,7 @@ int Xorriso_genisofs_help(struct XorrisO *xorriso, int flag)
|
||||
" -isohybrid-gpt-hfsplus Mark El Torito boot image as HFS+ in GPT",
|
||||
" -isohybrid-apm-hfsplus Mark El Torito boot image as HFS+ in APM",
|
||||
" -part_like_isohybrid Mark in MBR, GPT, APM without -isohybrid-mbr",
|
||||
" --gpt_disk_guid GUID Set GPT disk GUID or choose automatic GUID",
|
||||
" -G FILE, -generic-boot FILE Set generic boot image name",
|
||||
" --embedded-boot FILE Alias of -G",
|
||||
" --protective-msdos-label Patch System Area by partition table",
|
||||
@ -1908,7 +1908,8 @@ not_enough_args:;
|
||||
strcmp(argpt, "-isohybrid-mbr") == 0 ||
|
||||
strcmp(argpt, "--grub2-mbr") == 0 ||
|
||||
strncmp(argpt, "-hppa-", 6) == 0 ||
|
||||
strcmp(argpt, "-alpha-boot") == 0) {
|
||||
strcmp(argpt, "-alpha-boot") == 0 ||
|
||||
strcmp(argpt, "--gpt_disk_guid") == 0) {
|
||||
if(i+1>=argc)
|
||||
goto not_enough_args;
|
||||
delay_opt_list[delay_opt_count++]= i;
|
||||
@ -2479,6 +2480,14 @@ problem_handler_2:;
|
||||
} else if(strcmp(argpt, "-part_like_isohybrid") == 0) {
|
||||
xorriso->part_like_isohybrid= 1;
|
||||
|
||||
} else if(strcmp(argpt, "--gpt_disk_guid") == 0) {
|
||||
if(i + 1 >= argc)
|
||||
goto not_enough_args;
|
||||
i++;
|
||||
ret= Xorriso_parse_gpt_guid(xorriso, argv[i], 0);
|
||||
if(ret <= 0)
|
||||
goto problem_handler_boot;
|
||||
|
||||
} else if(strcmp(argpt, "-eltorito-alt-boot")==0) {
|
||||
ret= Xorriso_genisofs_add_boot(xorriso, 0);
|
||||
if(ret <= 0)
|
||||
|
Reference in New Issue
Block a user