New bootspec partition_cyl_align=, new -as mkisofs option -partition_cyl_align
This commit is contained in:
@@ -565,7 +565,7 @@ int Xorriso_genisofs_count_args(struct XorrisO *xorriso, int argc, char **argv,
|
||||
"-checksum_algorithm_iso", "-checksum_algorithm_template",
|
||||
"--stdio_sync", "--quoted_path_list", "--efi-boot", "--embedded-boot",
|
||||
"-isohybrid-mbr", "-e", "-partition_offset", "-partition_hd_cyl",
|
||||
"-partition_sec_hd", "-untranslated_name_len",
|
||||
"-partition_sec_hd", "-partition_cyl_align", "-untranslated_name_len",
|
||||
""
|
||||
};
|
||||
static char arg2_options[][41]= {
|
||||
@@ -761,6 +761,7 @@ int Xorriso_genisofs_help(struct XorrisO *xorriso, int flag)
|
||||
" -partition_offset LBA Make image mountable by first partition, too",
|
||||
" -partition_sec_hd NUMBER Define number of sectors per head",
|
||||
" -partition_hd_cyl NUMBER Define number of heads per cylinder",
|
||||
" -partition_cyl_align MODE Control cylinder alignment: off, on, auto",
|
||||
" -mips-boot FILE Set mips boot image name (relative to image root)",
|
||||
" -mipsel-boot FILE Set mipsel boot image name (relative to image root)",
|
||||
" -B FILES, -sparc-boot FILES Set sparc boot image names",
|
||||
@@ -1359,6 +1360,7 @@ not_enough_args:;
|
||||
strcmp(argv[i], "-partition_offset") == 0 ||
|
||||
strcmp(argv[i], "-partition_hd_cyl") == 0 ||
|
||||
strcmp(argv[i], "-partition_sec_hd") == 0 ||
|
||||
strcmp(argv[i], "-partition_cyl_align") == 0 ||
|
||||
strcmp(argv[i], "-isohybrid-mbr")==0) {
|
||||
if(i+1>=argc)
|
||||
goto not_enough_args;
|
||||
@@ -1798,7 +1800,8 @@ problem_handler_2:;
|
||||
xorriso->boot_image_cat_hidden|= 3;
|
||||
} else if(strcmp(argv[i], "-partition_offset") == 0 ||
|
||||
strcmp(argv[i], "-partition_sec_hd") == 0 ||
|
||||
strcmp(argv[i], "-partition_hd_cyl") == 0) {
|
||||
strcmp(argv[i], "-partition_hd_cyl") == 0 ||
|
||||
strcmp(argv[i], "-partition_cyl_align") == 0) {
|
||||
if(i+1>=argc)
|
||||
goto not_enough_args;
|
||||
i++;
|
||||
|
Reference in New Issue
Block a user