# HG changeset patch # User Pascal Bellard # Date 1527151464 -7200 # Node ID 6d164da691458cb254b686264e54063d106d7ad3 # Parent 8ebd772b1e4deeb68ddcddd290852ec02f649453 efi executables may need .efi suffix diff -r 8ebd772b1e4d -r 6d164da69145 tazlito --- a/tazlito Thu May 24 09:49:02 2018 +0200 +++ b/tazlito Thu May 24 10:44:24 2018 +0200 @@ -478,11 +478,13 @@ if [ ! -s $basedir/efi/boot/$efifile ] && [ $(get $((0x82)) "$1") == $((0x4550)) ]; then mkdir -p $basedir/efi/boot 2> /dev/null - for i in "$1" $basedir/boot/rootfs* ; do + ln "$1" "$basedir/efi/boot/$(basename $1).efi" + stat -c "%s %n" "$1" + for i in $basedir/boot/rootfs* ; do ln "$i" $basedir/efi/boot/ && stat -c "%s %n" "$i" done 2> /dev/null - efilinux="/EFI/BOOT/$(basename $1)" + efilinux="/EFI/BOOT/$(basename $1).efi" eficmdline="$efilinux rw root=0x100 autologin\ $( ( cd $basedir/efi/boot ; ls -r rootfs*gz ) | while read f ; do \ [ "$efifile" == "bootx64.efi" -a -s $basedir/efi/boot/${f}64 ] && \