From d87990de2c5b04b672d0bebbcc93df69d83b5591 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 23 Oct 2015 08:57:01 +0000 Subject: [PATCH] Record size 0 with oversized EFI boot images to span them up to end of medium --- xorriso/write_run.c | 11 +++++++++-- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/xorriso/write_run.c b/xorriso/write_run.c index 43e1e754..54eb672c 100644 --- a/xorriso/write_run.c +++ b/xorriso/write_run.c @@ -729,9 +729,16 @@ int Xorriso_attach_boot_image(struct XorrisO *xorriso, int flag) el_torito_set_boot_platform_id(bootimg, (uint8_t) platform_id); if(load_size / 512 > 65535) { sprintf(xorriso->info_text, - "Boot image load size exceeds 65535 blocks. Will record 65535 in El Torito."); + "Boot image load size exceeds 65535 blocks of 512 bytes. "); + if(platform_id == 0xef) { + strcat(xorriso->info_text, + "Will record 0 in El Torito to extend ESP to end-of-medium."); + load_size= 0; + } else { + strcat(xorriso->info_text, "Will record 65535 in El Torito."); + load_size= 65535 * 512; + } Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "WARNING", 0); - load_size= 65535 * 512; } /* The function will understand negative short as positive unsigned */ el_torito_set_load_size(bootimg, (short) (load_size / 512)); diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index c49d6601..c2263008 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2015.10.18.130151" +#define Xorriso_timestamP "2015.10.23.085903"