tazlito rev 509

Take care of installed /boot/isolinux/efi.img
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 03 14:17:50 2018 +0200 (9 months ago)
parents 8b6be2b2d776
children 3ab0aff91019
files tazlito
line diff
     1.1 --- a/tazlito	Sun Jun 03 13:08:22 2018 +0200
     1.2 +++ b/tazlito	Sun Jun 03 14:17:50 2018 +0200
     1.3 @@ -304,6 +304,7 @@
     1.4  
     1.5  fixup_uefi_part() {
     1.6  	[ -s $2/boot/isolinux/efi.img ] || return
     1.7 +	[ -x $2/boot/isolinux/efi.img ] && return
     1.8  	local n=$(get 19 "$2/boot/isolinux/efi.img")
     1.9  	[ $n -eq 0 ] && n=$(get 32 "$2/boot/isolinux/efi.img" 4)
    1.10  	efiblock=$(first_block "$2/boot/isolinux/efi.img")
    1.11 @@ -466,6 +467,10 @@
    1.12  
    1.13  alloc_uefi_part() {
    1.14  	local basedir=$(dirname "$1")/..
    1.15 +	if [ -s $basedir/boot/isolinux/efi.img ]; then
    1.16 +		chmod +x $basedir/boot/isolinux/efi.img
    1.17 +		return
    1.18 +	fi
    1.19  	local fclust=$({
    1.20  	[ -d $basedir/efi ] &&
    1.21  		find $basedir/efi -type f -exec stat -c "%s %n" {} \;