Issueing warning messages if -boot_image paths currently are unsuitable
This commit is contained in:
@ -869,6 +869,8 @@ treatment_patch:;
|
||||
xorriso->boot_image_cat_path, 2);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
Xorriso_warn_if_not_bootcat(xorriso, "-boot_image ", treatment,
|
||||
xorriso->boot_image_cat_path, 0);
|
||||
is_change= 1;
|
||||
|
||||
} else if(strncmp(treatpt, "cat_hidden=", 11) == 0) {
|
||||
@ -912,6 +914,10 @@ treatment_patch:;
|
||||
xorriso->keep_boot_image= 0;
|
||||
xorriso->patch_isolinux_image= (xorriso->patch_isolinux_image & ~3) | 1;
|
||||
strcpy(xorriso->boot_image_bin_form, formpt);
|
||||
Xorriso_warn_if_not_exist(xorriso, "Implicit boot image via -boot_image ",
|
||||
treatment, xorriso->boot_image_bin_path, 0);
|
||||
Xorriso_warn_if_not_bootcat(xorriso, "-boot_image ", treatment,
|
||||
xorriso->boot_image_cat_path, 0);
|
||||
is_change= 1;
|
||||
{ret= 1; goto ex;}
|
||||
|
||||
@ -946,6 +952,8 @@ interval_text_long:;
|
||||
xorriso->boot_image_bin_path, 2);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
Xorriso_warn_if_not_exist(xorriso, "-boot_image ",
|
||||
treatment, xorriso->boot_image_bin_path, 0);
|
||||
}
|
||||
xorriso->keep_boot_image= 0;
|
||||
if(isolinux_grub) {
|
||||
@ -974,6 +982,8 @@ interval_text_long:;
|
||||
xorriso->boot_image_bin_path, 2);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
Xorriso_warn_if_not_exist(xorriso, "-boot_image ",
|
||||
treatment, xorriso->boot_image_bin_path, 0);
|
||||
}
|
||||
xorriso->keep_boot_image= 0;
|
||||
xorriso->boot_efi_default= 1;
|
||||
@ -991,6 +1001,7 @@ interval_text_long:;
|
||||
ret= Xorriso_add_mips_boot_file(xorriso, eff_path, 0);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
Xorriso_warn_if_not_exist(xorriso, "-boot_image ", treatment, eff_path, 0);
|
||||
is_change= 1;
|
||||
|
||||
} else if(strncmp(treatpt, "mipsel_path=", 12) == 0) {
|
||||
@ -1005,6 +1016,7 @@ interval_text_long:;
|
||||
ret= Xorriso_add_mips_boot_file(xorriso, eff_path, 2);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
Xorriso_warn_if_not_exist(xorriso, "-boot_image ", treatment, eff_path, 0);
|
||||
is_change= 1;
|
||||
|
||||
} else if(strcmp(treatpt, "mips_discard") == 0 ||
|
||||
@ -1033,6 +1045,8 @@ interval_text_long:;
|
||||
xorriso->grub2_sparc_core, 2);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
Xorriso_warn_if_not_exist(xorriso, "-boot_image ", treatment,
|
||||
xorriso->grub2_sparc_core, 0);
|
||||
is_change= 1;
|
||||
|
||||
} else if(strncmp(treatpt, "hppa_", 5) == 0) {
|
||||
@ -1059,6 +1073,7 @@ interval_text_long:;
|
||||
ret= Xorriso_set_hppa_boot_parm(xorriso, eqpt + 1, parm, 0);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
/* (needs no file existence check because already done in libisofs) */
|
||||
is_change= 1;
|
||||
|
||||
} else if(strncmp(treatpt, "alpha_boot=", 11) == 0) {
|
||||
@ -1069,6 +1084,8 @@ interval_text_long:;
|
||||
ret = Xorriso_set_alpha_boot(xorriso, treatpt + 11, 0);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
Xorriso_warn_if_not_exist(xorriso, "-boot_image ", treatment,
|
||||
treatpt + 11, 0);
|
||||
is_change= 1;
|
||||
|
||||
} else if(strncmp(treatpt, "boot_info_table=", 16)==0) {
|
||||
@ -1142,6 +1159,7 @@ interval_text_long:;
|
||||
if(strcmp(treatpt + 12, ".") == 0) {
|
||||
ret= Xorriso_set_system_area_path(xorriso, "", 0);
|
||||
} else {
|
||||
/* (checks also for existence of the disk file) */
|
||||
ret= Xorriso_set_system_area_path(xorriso, treatpt + 12, 0);
|
||||
}
|
||||
if(ret <= 0)
|
||||
@ -1393,11 +1411,15 @@ interval_text_long:;
|
||||
} else if(strncmp(treatpt, "efi_boot_part=", 14) == 0) {
|
||||
if(Sfile_str(xorriso->efi_boot_partition, treatpt + 14, 0) <= 0)
|
||||
{ret= -1; goto ex;}
|
||||
Xorriso_warn_if_not_exist(xorriso, "-boot_image ", treatment,
|
||||
treatpt + 14, 1);
|
||||
is_change= 1;
|
||||
|
||||
} else if(strncmp(treatpt, "prep_boot_part=", 15) == 0) {
|
||||
if(Sfile_str(xorriso->prep_partition, treatpt + 15, 0) <= 0)
|
||||
{ret= -1; goto ex;}
|
||||
Xorriso_warn_if_not_exist(xorriso, "-boot_image ", treatment,
|
||||
treatpt + 15, 1);
|
||||
is_change= 1;
|
||||
|
||||
} else if(strncmp(treatpt, "chrp_boot_part=", 15) == 0) {
|
||||
@ -1462,6 +1484,7 @@ interval_text_long:;
|
||||
if(strcmp(treatpt + 10, ".") == 0) {
|
||||
ret= Xorriso_set_system_area_path(xorriso, "", 0);
|
||||
} else {
|
||||
/* (checks also for existence of the disk file) */
|
||||
ret= Xorriso_set_system_area_path(xorriso, treatpt + 10, 0);
|
||||
}
|
||||
if(ret <= 0)
|
||||
|
Reference in New Issue
Block a user