New -boot_image specifier emul_type=none|hard_disk|floppy
This commit is contained in:
@ -805,6 +805,23 @@ treatment_patch:;
|
||||
}
|
||||
xorriso->boot_platform_id= u;
|
||||
|
||||
} else if(strncmp(treatpt, "emul_type=", 10)==0) {
|
||||
if(strcmp(treatpt + 10, "none") == 0 ||
|
||||
strcmp(treatpt + 10, "no_emulation") == 0) {
|
||||
xorriso->boot_image_emul= 0;
|
||||
} else if(strcmp(treatpt + 10, "hard_disk") == 0) {
|
||||
xorriso->boot_image_emul= 1;
|
||||
} else if(strcmp(treatpt + 10, "floppy") == 0 ||
|
||||
strcmp(treatpt + 10, "diskette") == 0) {
|
||||
xorriso->boot_image_emul= 2;
|
||||
} else {
|
||||
sprintf(xorriso->info_text,
|
||||
"-boot_image %s : Unknown media_type : %s",
|
||||
formpt, treatpt + 10);
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||
return(0);
|
||||
}
|
||||
|
||||
} else if(strncmp(treatpt, "isohybrid=", 10) == 0 &&
|
||||
strcmp(formpt, "isolinux")==0) {
|
||||
|
||||
|
Reference in New Issue
Block a user