wok-next diff syslinux/stuff/iso2exe/init @ rev 17813

syslinux/iso2exe: update partition table (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 21 15:26:13 2015 +0100 (2015-03-21)
parents 639e963885dd
children 9822e51d7c2e
line diff
     1.1 --- a/syslinux/stuff/iso2exe/init	Tue Feb 17 09:13:31 2015 +0000
     1.2 +++ b/syslinux/stuff/iso2exe/init	Sat Mar 21 15:26:13 2015 +0100
     1.3 @@ -126,7 +126,7 @@
     1.4  gettazboot()
     1.5  {
     1.6  	echo "Creating $(basename $1) ..."
     1.7 -	O=$(($(get 66 /mnt/$ISO) - 0xC0))
     1.8 +	O=$(($(get 64 /mnt/$ISO) - 0xC0))
     1.9  	L=$(($(get 20 /mnt/$ISO) - 0xC0 - $(get 24 /mnt/$ISO) - $O))
    1.10  	S=$((32+$L))
    1.11  	P=$((($S+511)/512))
    1.12 @@ -692,10 +692,10 @@
    1.13  " 10 70
    1.14  	[ $? -eq 0 ] || return
    1.15  	ddq if=/mnt/$ISO of=/tmp/bootiso bs=1 count=512 \
    1.16 -		skip=$(( $(get 66 /mnt/$ISO) - $sz ))
    1.17 +		skip=$(( $(get 64 /mnt/$ISO) - $sz ))
    1.18  	echo "$ISO" | ddq of=/tmp/bootiso bs=512 seek=1 count=1
    1.19  	ddq if=/mnt/$ISO of=/tmp/bootiso bs=1 count=$sz seek=2 \
    1.20 -		skip=$(( $(get 66 /mnt/$ISO) - $sz + 512 ))
    1.21 +		skip=$(( $(get 64 /mnt/$ISO) - $sz + 512 ))
    1.22  	mkfloppy /tmp/bootiso
    1.23  	rm -f /tmp/bootiso
    1.24  }