tazlito rev 444
sort iso files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 20 12:05:53 2016 +0100 (2016-12-20) |
parents | e800d2f7e636 |
children | 51cc6bdeac66 |
files | tazlito |
line diff
1.1 --- a/tazlito Sat Nov 19 23:47:56 2016 +0200 1.2 +++ b/tazlito Tue Dec 20 12:05:53 2016 +0100 1.3 @@ -269,6 +269,15 @@ 1.4 cd $2 1.5 deduplicate 1.6 1.7 + cat > /tmp/cdsort$$ <<EOT 1.8 +$PWD/boot 100 1.9 +$PWD/boot/bzImage 200 1.10 +$(n=199; ls -r $PWD/boot/rootfs* | while read f; do echo "$f $((n--))"; done) 1.11 +$PWD/boot/isolinux 300 1.12 +$PWD/boot/isolinux/boot.cat 400 1.13 +$PWD/boot/isolinux/isolinux.bin 399 1.14 +EOT 1.15 + 1.16 action 'Computing md5...' 1.17 find * -type f ! -name md5sum ! -name 'vmlinuz-*' -exec md5sum {} \; > md5sum 1.18 sed -i -e '/ boot\/isolinux\/isolinux.bin$/d' \ 1.19 @@ -281,7 +290,7 @@ 1.20 _ 'Generating %s' "$1" 1.21 make_bzImage_hardlink $2/boot 1.22 uefi="$(cd $2 ; ls boot/isolinux/*efi*img 2> /dev/null)" 1.23 - genisoimage -R -o $1 -hide-rr-moved \ 1.24 + genisoimage -R -o $1 -hide-rr-moved -sort /tmp/cdsort$$ \ 1.25 -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \ 1.26 -no-emul-boot -boot-load-size 4 -boot-info-table \ 1.27 ${uefi:+-eltorito-alt-boot -efi-boot $uefi -no-emul-boot} \ 1.28 @@ -289,6 +298,7 @@ 1.29 -volset "SliTaz $SLITAZ_VERSION" -input-charset utf-8 \ 1.30 -A "tazlito $VERSION/$(genisoimage --version)" \ 1.31 -copyright README -P "www.slitaz.org" $2 1.32 + rm -f /tmp/cdsort$$ 1.33 if [ -s '/etc/tazlito/info' ]; then 1.34 if [ $(stat -c %s /etc/tazlito/info) -lt $(( 31*1024 )) ]; then 1.35 action 'Storing ISO info...'