wok rev 20309
syslinux/isohybrid.sh: resize EFI partition
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 14 15:59:11 2018 +0200 (2018-05-14) |
parents | d06c2890ad57 |
children | 00bd612becea |
files | bind-client/receipt syslinux/stuff/tools/isohybrid.sh |
line diff
1.1 --- a/bind-client/receipt Wed May 09 12:44:14 2018 +0200 1.2 +++ b/bind-client/receipt Mon May 14 15:59:11 2018 +0200 1.3 @@ -9,7 +9,7 @@ 1.4 WEB_SITE="http://www.isc.org/products/BIND/" 1.5 WANTED="bind" 1.6 1.7 -DEPENDS="libbind libcrypto attr libpcap" 1.8 +DEPENDS="libbind libcrypto attr libpcap readline" 1.9 1.10 # Rules to gen a SliTaz package suitable for Tazpkg. 1.11 genpkg_rules()
2.1 --- a/syslinux/stuff/tools/isohybrid.sh Wed May 09 12:44:14 2018 +0200 2.2 +++ b/syslinux/stuff/tools/isohybrid.sh Mon May 14 15:59:11 2018 +0200 2.3 @@ -192,7 +192,9 @@ 2.4 ecyl=$(( (($cylinders -1) & 0xff) <<24)) 2.5 store32 $(($e + 4)) $(($partype + (($heads - 1) <<8) +$esect +$ecyl)) 2.6 store32 $(($e + 8)) $offset 2.7 - store32 $(($e + 12)) $(($cylinders * $heads * $sectors)) 2.8 + sectsize=$(($cylinders * $heads * $sectors)) 2.9 + store32 $(($e + 12)) $sectsize 2.10 + efi_len=$(($sectsize - $efi_ofs)) 2.11 if [ -n "$efi_ofs" ]; then 2.12 [ $(read16 0 1024) -eq 35615 -a $(read16 11 0) -ne 35615 ] && 2.13 ddq bs=512 conv=notrunc skip=2 seek=44 count=20 if=$iso of=$iso 2.14 @@ -243,9 +245,7 @@ 2.15 if [ $(read8 $cat 65) -eq 239 ]; then 2.16 [ -n "$entry" ] && echo "$iso: efi boot ignore --entry $entry" && entry= 2.17 partype=0 2.18 - efi_len=$(read16 $cat 102) 2.19 efi_ofs=$((4*$(read32 $cat 104))) 2.20 - efi_len=$(((($efi_ofs+$efi_len+0xFFF)&0xFFF000)-$efi_ofs)) 2.21 fi 2.22 lba=$(read32 $cat 40) 2.23 [ $(read32 $lba 64) -eq 1886961915 ] ||