New -as mkisofs option --grub2-sparc-core
This commit is contained in:
parent
109df000aa
commit
44f9b65d9f
@ -619,6 +619,7 @@ int Xorriso_genisofs_count_args(struct XorrisO *xorriso, int argc, char **argv,
|
|||||||
"-partition_sec_hd", "-partition_cyl_align", "-untranslated_name_len",
|
"-partition_sec_hd", "-partition_cyl_align", "-untranslated_name_len",
|
||||||
"-rr_reloc_dir", "-hfsplus-serial-no", "-prep-boot-part", "-efi-boot-part",
|
"-rr_reloc_dir", "-hfsplus-serial-no", "-prep-boot-part", "-efi-boot-part",
|
||||||
"-hfsplus-block-size", "-apm-block-size", "--grub2-mbr",
|
"-hfsplus-block-size", "-apm-block-size", "--grub2-mbr",
|
||||||
|
"--grub2-sparc-core",
|
||||||
""
|
""
|
||||||
};
|
};
|
||||||
static char arg2_options[][41]= {
|
static char arg2_options[][41]= {
|
||||||
@ -834,6 +835,7 @@ int Xorriso_genisofs_help(struct XorrisO *xorriso, int flag)
|
|||||||
" -mipsel-boot FILE Set mipsel 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",
|
" -B FILES, -sparc-boot FILES Set sparc boot image names",
|
||||||
" -sparc-label label text Set sparc boot disk label",
|
" -sparc-label label text Set sparc boot disk label",
|
||||||
|
" --grub2-sparc-core FILE Set path of core file for disk label patching",
|
||||||
" -efi-boot-part DISKFILE|--efi-boot-image",
|
" -efi-boot-part DISKFILE|--efi-boot-image",
|
||||||
" Set data source for EFI System Partition",
|
" Set data source for EFI System Partition",
|
||||||
" -chrp-boot-part Mark ISO image size by MBR partition type 0x41",
|
" -chrp-boot-part Mark ISO image size by MBR partition type 0x41",
|
||||||
@ -1911,10 +1913,21 @@ not_enough_args:;
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if(strcmp(argpt, "-sparc-label") == 0) {
|
} else if(strcmp(argpt, "-sparc-label") == 0) {
|
||||||
|
if(i+1>=argc)
|
||||||
|
goto not_enough_args;
|
||||||
i++;
|
i++;
|
||||||
strncpy(xorriso->ascii_disc_label, argv[i], Xorriso_disc_label_sizE - 1);
|
strncpy(xorriso->ascii_disc_label, argv[i], Xorriso_disc_label_sizE - 1);
|
||||||
xorriso->ascii_disc_label[Xorriso_disc_label_sizE - 1] = 0;
|
xorriso->ascii_disc_label[Xorriso_disc_label_sizE - 1] = 0;
|
||||||
|
|
||||||
|
} else if(strcmp(argpt, "--grub2-sparc-core") == 0) {
|
||||||
|
if(i+1>=argc)
|
||||||
|
goto not_enough_args;
|
||||||
|
i++;
|
||||||
|
sprintf(sfe, "grub2_sparc_core=%s", argv[i]);
|
||||||
|
ret= Xorriso_option_boot_image(xorriso, "any", sfe, 0);
|
||||||
|
if(ret <= 0)
|
||||||
|
goto problem_handler_2;
|
||||||
|
|
||||||
} else if(strcmp(argpt, "--stdio_sync")==0) {
|
} else if(strcmp(argpt, "--stdio_sync")==0) {
|
||||||
if(i+1>=argc)
|
if(i+1>=argc)
|
||||||
goto not_enough_args;
|
goto not_enough_args;
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2013.04.13.205230"
|
#define Xorriso_timestamP "2013.04.13.205450"
|
||||||
|
Loading…
Reference in New Issue
Block a user