# HG changeset patch # User Pascal Bellard # Date 1528028270 -7200 # Node ID d585f84044939a7227d538a50746677b61d55e50 # Parent 8b6be2b2d776087a2d699322debf5ab0a7ef382f Take care of installed /boot/isolinux/efi.img diff -r 8b6be2b2d776 -r d585f8404493 tazlito --- a/tazlito Sun Jun 03 13:08:22 2018 +0200 +++ b/tazlito Sun Jun 03 14:17:50 2018 +0200 @@ -304,6 +304,7 @@ fixup_uefi_part() { [ -s $2/boot/isolinux/efi.img ] || return + [ -x $2/boot/isolinux/efi.img ] && return local n=$(get 19 "$2/boot/isolinux/efi.img") [ $n -eq 0 ] && n=$(get 32 "$2/boot/isolinux/efi.img" 4) efiblock=$(first_block "$2/boot/isolinux/efi.img") @@ -466,6 +467,10 @@ alloc_uefi_part() { local basedir=$(dirname "$1")/.. + if [ -s $basedir/boot/isolinux/efi.img ]; then + chmod +x $basedir/boot/isolinux/efi.img + return + fi local fclust=$({ [ -d $basedir/efi ] && find $basedir/efi -type f -exec stat -c "%s %n" {} \;