tazlito diff tazlito @ rev 504

efi executables may need .efi suffix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 24 10:44:24 2018 +0200 (2018-05-24)
parents 8ebd772b1e4d
children 674d4b42127b
line diff
     1.1 --- a/tazlito	Thu May 24 09:49:02 2018 +0200
     1.2 +++ b/tazlito	Thu May 24 10:44:24 2018 +0200
     1.3 @@ -478,11 +478,13 @@
     1.4  		if [ ! -s $basedir/efi/boot/$efifile ] &&
     1.5  		   [ $(get $((0x82)) "$1") == $((0x4550)) ]; then
     1.6  			mkdir -p $basedir/efi/boot 2> /dev/null
     1.7 -			for i in "$1" $basedir/boot/rootfs* ; do
     1.8 +			ln "$1" "$basedir/efi/boot/$(basename $1).efi"
     1.9 +			stat -c "%s %n" "$1"
    1.10 +			for i in $basedir/boot/rootfs* ; do
    1.11  				ln "$i" $basedir/efi/boot/ &&
    1.12  				stat -c "%s %n" "$i"
    1.13  			done 2> /dev/null
    1.14 -			efilinux="/EFI/BOOT/$(basename $1)"
    1.15 +			efilinux="/EFI/BOOT/$(basename $1).efi"
    1.16  			eficmdline="$efilinux rw root=0x100 autologin\
    1.17  $( ( cd $basedir/efi/boot ; ls -r rootfs*gz ) | while read f ; do \
    1.18  [ "$efifile" == "bootx64.efi" -a -s $basedir/efi/boot/${f}64 ] && \