Provisory new -as mkisofs options -prep-boot-part, -efi-boot-part

This commit is contained in:
2012-06-12 11:35:05 +00:00
parent f133a1eee3
commit 75a53dc9a2
5 changed files with 33 additions and 2 deletions

View File

@ -608,7 +608,7 @@ int Xorriso_genisofs_count_args(struct XorrisO *xorriso, int argc, char **argv,
"--stdio_sync", "--quoted_path_list", "--efi-boot", "--embedded-boot",
"-isohybrid-mbr", "-e", "-partition_offset", "-partition_hd_cyl",
"-partition_sec_hd", "-partition_cyl_align", "-untranslated_name_len",
"-rr_reloc_dir", "-hfsplus-serial-no",
"-rr_reloc_dir", "-hfsplus-serial-no", "-prep-boot-part", "-efi-boot-part",
""
};
static char arg2_options[][41]= {
@ -1794,7 +1794,22 @@ not_enough_args:;
ret= Xorriso_option_jigdo(xorriso, argpt, argv[i], 0);
if(ret <= 0)
goto problem_handler_2;
} else if(strcmp(argpt, "-prep-boot-part") == 0) {
if(i + 1 >= argc)
goto not_enough_args;
i++;
strcpy(xorriso->prep_partition, argv[i]);
} else if(strcmp(argpt, "-efi-boot-part") == 0) {
if(i + 1 >= argc)
goto not_enough_args;
i++;
strcpy(xorriso->efi_boot_partition, argv[i]);
} else if(strcmp(argpt, "-append_partition") == 0) {
if(i + 3 >= argc)
goto not_enough_args;
i+= 3;
ret= Xorriso_option_append_partition(xorriso, argv[i - 2], argv[i - 1],
argv[i], 0);