Precautions against patching deleted boot images
This commit is contained in:
parent
50ae925204
commit
d5acc6e2be
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2008.10.26.134421"
|
||||
#define Xorriso_timestamP "2008.10.26.142422"
|
||||
|
@ -1182,6 +1182,22 @@ int Xorriso_write_session(struct XorrisO *xorriso, int flag)
|
||||
sprintf(xorriso->info_text, "Patching alleged isolinux boot image");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "NOTE", 0);
|
||||
|
||||
ret= Xorriso_path_from_node(xorriso, NULL, xorriso->loaded_boot_bin_lba,
|
||||
sfe, 1);
|
||||
if(ret < 0)
|
||||
goto ex;
|
||||
if(ret == 0) {
|
||||
sprintf(xorriso->info_text,
|
||||
"Cannot patch boot image: no file found for its LBA.");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||
sprintf(xorriso->info_text,
|
||||
"Probably the loaded boot image file was deleted in this session.");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||
sprintf(xorriso->info_text,
|
||||
"Use -boot_image \"any\" \"discard\" or set new boot image");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "HINT", 0);
|
||||
goto ex;
|
||||
}
|
||||
|
||||
#ifdef Xorriso_with_make_isohybrid_mbR
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user