tazlito rev 517

Reorder files in iso image
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 25 17:31:44 2019 +0200 (3 months ago)
parents 06217db0ecc0
children 1f676a53c37f
files tazlito
line diff
     1.1 --- a/tazlito	Mon Jul 01 12:00:20 2019 +0200
     1.2 +++ b/tazlito	Sun Aug 25 17:31:44 2019 +0200
     1.3 @@ -637,14 +637,19 @@
     1.4  	make_bzImage_hardlink $2/boot
     1.5  	alloc_uefi_part $(ls -r $2/boot/vmlinuz*slitaz*)
     1.6  
     1.7 -	cat > /tmp/cdsort$$ <<EOT
     1.8 -$PWD/boot/isolinux 100
     1.9 -$(ls -r $PWD/boot/rootfs* | awk 'BEGIN{n=149} { print $1 " " n-- }')
    1.10 -$(ls $PWD/boot/bzImage* | awk 'BEGIN{n=200} { print $1 " " n-- }')
    1.11 -$(find $PWD/efi -type f 2>/dev/null | sort -r | awk 'BEGIN{n=299} { print $1 " " n-- }')
    1.12 -$PWD/boot/isolinux/efi.img 300
    1.13 -$PWD/boot/isolinux/isolinux.bin 399
    1.14 -$PWD/boot/isolinux/boot.cat 400
    1.15 +	while read file; do ls -r $file 2> /dev/null; done << EOT | \
    1.16 +	awk 'BEGIN { n=100 } { print $1 " " n-- }' > /tmp/cdsort$$
    1.17 +$PWD/boot/isolinux/boot.cat
    1.18 +$PWD/boot/isolinux/isolinux.bin
    1.19 +$PWD/boot/isolinux/isolinux.cfg
    1.20 +$PWD/boot/isolinux/vesamenu.c32
    1.21 +$PWD/boot/isolinux/i18n.cfg
    1.22 +$PWD/boot/isolinux/kbd
    1.23 +$PWD/boot/isolinux/c32box.c32
    1.24 +$PWD/boot/isolinux/efi.img
    1.25 +$PWD/boot/bzImage*
    1.26 +$PWD/efi/boot/linux.cmdline*
    1.27 +$PWD/boot/rootfs*
    1.28  EOT
    1.29  
    1.30  	action 'Computing md5...'