wok-current diff syslinux/stuff/iso2exe/iso2exe.sh @ rev 24019
syslinux: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 28 16:32:57 2021 +0000 (2021-02-28) |
parents | 5b0e64c0628a |
children | 4e5765b0f66e |
line diff
1.1 --- a/syslinux/stuff/iso2exe/iso2exe.sh Fri Feb 05 17:16:12 2021 +0000 1.2 +++ b/syslinux/stuff/iso2exe/iso2exe.sh Sun Feb 28 16:32:57 2021 +0000 1.3 @@ -43,7 +43,7 @@ 1.4 TMP=/tmp/iso2exe$$ 1.5 mkdir -p $TMP/mnt 1.6 mount -o loop,ro $1 $TMP/mnt 1.7 - if grep -qs rootfs $TMP/mnt/boot/isolinux/isolinux.cfg ; then 1.8 + if [ $2 = --array ] || grep -qs rootfs $TMP/mnt/boot/isolinux/isolinux.cfg ; then 1.9 $0 --get rootfs.gz > $TMP/rootfs.gz 1.10 SIZE=$(wc -c < $TMP/rootfs.gz) 1.11 store 24 $SIZE $1 1.12 @@ -338,7 +338,7 @@ 1.13 ddq if=/dev/zero bs=32k count=1 of=$DATA 1.14 add_win32exe $DATA $2 > /dev/null 1.15 HSZ=$OFS 1.16 - add_rootfs $DATA > /dev/null 1.17 + add_rootfs $DATA --array > /dev/null 1.18 add_fdbootstrap $DATA > /dev/null 1.19 name=${3:-bootiso} 1.20 BOOTISOSZ=$((0x8000 - $OFS + $HSZ))