tazlito rev 530
Add EFI eltorito boot file truncate warning
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 18 09:07:41 2020 +0000 (2020-11-18) |
parents | 8654e61dc1b3 |
children | 2b9019bb1593 |
files | tazlito |
line diff
1.1 --- a/tazlito Sat Oct 31 16:26:51 2020 +0000 1.2 +++ b/tazlito Wed Nov 18 09:07:41 2020 +0000 1.3 @@ -274,7 +274,9 @@ 1.4 1.5 fix_efi_boot_img_size() { 1.6 local n=$3 1.7 - [ $n -gt 65535 ] && n=65535 1.8 + # Sector count on 16 bits (max 128MB), see offset 6-7 in page 11 of 1.9 + # https://pdos.csail.mit.edu/6.828/2014/readings/boot-cdrom.pdf 1.10 + [ $n -gt 65535 ] && n=65535 && echo "Warning: truncate EFI eltorito boot file" 1.11 set32 $((0x66+2048*$(first_block $2/boot/isolinux/boot.cat))) $n $1 16 1.12 set32 $((0x1C+2048*$4)) $(($4*4)) $1 1.13 }