# HG changeset patch # User Pascal Bellard # Date 1605690461 0 # Node ID 668f2e7befb0fcd75ebeef9b43c9b8afba230f7f # Parent 8654e61dc1b358388aa6f061656a78d88184fc1e Add EFI eltorito boot file truncate warning diff -r 8654e61dc1b3 -r 668f2e7befb0 tazlito --- a/tazlito Sat Oct 31 16:26:51 2020 +0000 +++ b/tazlito Wed Nov 18 09:07:41 2020 +0000 @@ -274,7 +274,9 @@ fix_efi_boot_img_size() { local n=$3 - [ $n -gt 65535 ] && n=65535 + # Sector count on 16 bits (max 128MB), see offset 6-7 in page 11 of + # https://pdos.csail.mit.edu/6.828/2014/readings/boot-cdrom.pdf + [ $n -gt 65535 ] && n=65535 && echo "Warning: truncate EFI eltorito boot file" set32 $((0x66+2048*$(first_block $2/boot/isolinux/boot.cat))) $n $1 16 set32 $((0x1C+2048*$4)) $(($4*4)) $1 }