New command -extract_boot_images
This commit is contained in:
@ -542,6 +542,7 @@ int Xorriso_count_args(struct XorrisO *xorriso, int argc, char **argv,
|
||||
"commit_eject","compliance","copyright_file",
|
||||
"dev","dialog","disk_dev_ino","disk_pattern","displacement",
|
||||
"drive_access","dummy","dvd_obs","early_stdio_test","ecma119_map","eject",
|
||||
"extract_boot_images",
|
||||
"iso_nowtime","iso_rr_pattern","file_name_limit","follow","format","fs",
|
||||
"gid","grow_blindly","hardlinks",
|
||||
"hfsplus","history","indev","in_charset","joliet","joliet_map",
|
||||
@ -748,6 +749,7 @@ int Xorriso_cmd_sorting_rank(struct XorrisO *xorriso,
|
||||
|
||||
"* osirrox ISO-to-disk restore options:",
|
||||
"osirrox", "extract", "extract_single", "extract_l", "extract_cut",
|
||||
"extract_boot_images",
|
||||
"cpx", "cpax", "cp_rx", "cp_rax", "paste_in", "concat",
|
||||
"mount",
|
||||
|
||||
@ -1316,11 +1318,22 @@ next_command:;
|
||||
(*idx)+= 2;
|
||||
ret= Xorriso_option_extract(xorriso, arg1, arg2, 0);
|
||||
|
||||
} else if(strcmp(cmd,"extract_boot_images")==0) {
|
||||
(*idx)+= 1;
|
||||
if((*idx)>argc) {
|
||||
sprintf(xorriso->info_text,
|
||||
"-extract_boot_images: Empty disk_path cannot be used as target directory");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||
ret= 0;
|
||||
} else {
|
||||
ret= Xorriso_option_extract_boot_images(xorriso, arg1, 0);
|
||||
}
|
||||
|
||||
} else if(strcmp(cmd,"extract_cut")==0) {
|
||||
(*idx)+= 4;
|
||||
if((*idx)>argc) {
|
||||
sprintf(xorriso->info_text,
|
||||
"-extract_cut: Not enough arguments. Needed are: disk_path start count so_rr_path");
|
||||
"-extract_cut: Not enough arguments. Needed are: disk_path start count iso_rr_path");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||
ret= 0;
|
||||
} else
|
||||
|
Reference in New Issue
Block a user