wok rev 23986
syslinux: fix iso2exe/init
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 02 12:35:41 2020 +0000 (2020-12-02) |
parents | 555bcdab610b |
children | c2d686c8ab08 |
files | linld/stuff/src/ISOCRTL.ASM syslinux/stuff/iso2exe/init |
line diff
1.1 --- a/linld/stuff/src/ISOCRTL.ASM Sat Nov 28 09:45:01 2020 +0000 1.2 +++ b/linld/stuff/src/ISOCRTL.ASM Wed Dec 02 12:35:41 2020 +0000 1.3 @@ -149,6 +149,7 @@ 1.4 je doseek 1.5 add dx,[bx+4] ; _isostate.filesize 1.6 adc cx,[bx+6] 1.7 + mov al,0 1.8 doseek: 1.9 call lseek ; lseek(,,al) 1.10 sub_fileofs:
2.1 --- a/syslinux/stuff/iso2exe/init Sat Nov 28 09:45:01 2020 +0000 2.2 +++ b/syslinux/stuff/iso2exe/init Wed Dec 02 12:35:41 2020 +0000 2.3 @@ -36,7 +36,7 @@ 2.4 { 2.5 mkdir -p $media 2.6 for dev in /sys/block/*; do 2.7 - dev=$(ls $dev/$(basename $dev)* 2> /dev/null) 2.8 + dev=$(ls -d $dev/$(basename $dev)*) 2.9 [ "$dev" ] || continue 2.10 mount /dev/$(basename $dev) $mnt 2.11 if checkmagic $mnt/$ISO; then 2.12 @@ -46,7 +46,7 @@ 2.13 return 0 2.14 fi 2.15 umount $mnt 2.16 - done 2>/dev/null 2.17 + done 2.18 return 1 2.19 } 2.20 2.21 @@ -192,5 +192,4 @@ 2.22 getiso 2>/dev/null || text 2.23 mount_loram 2.24 [ -s /usr/bin/taziso ] || live 2.25 - 2.26 -. /usr/bin/taziso 2.27 +. /usr/bin/taziso $ISO