# HG changeset patch # User Pascal Bellard # Date 1516393030 -3600 # Node ID 7959015b775de4efd45412938c82682069702667 # Parent 694ee477b778d143eea84a7e987cc898f5fa567a uefi support aventually... (again) diff -r 694ee477b778 -r 7959015b775d tazlito --- a/tazlito Fri Jan 19 21:06:16 2018 +0100 +++ b/tazlito Fri Jan 19 21:17:10 2018 +0100 @@ -343,9 +343,9 @@ }' | hexdump -R > /tmp/fatbin-16-$$ fi - # align fat to 2k - dd of=$(ls /tmp/fatbin-*-$$) count=0 bs=2048 \ - seek=$((($(stat -c %s /tmp/fatbin-*-$$)-1)/2048+1)) 2>/dev/null + # align fat to 512 bytes + dd of=$(ls /tmp/fatbin-*-$$) count=0 bs=512 \ + seek=$((($(stat -c %s /tmp/fatbin-*-$$)-1)/512+1)) 2>/dev/null # build directory records @@ -472,10 +472,10 @@ clusters=$(($clusters+$dclust)) if [ $clusters -lt 4000 ]; then # reserved + fat*2 + root dir + dirs - count=$(( 1 + (($clusters*3+4095)/4096)*2 + 1 + $dclust )) + count=$(((1 + (($clusters*3+1023)/1024)*2+3)/4+1 + $dclust )) else # reserved + fat*2 + root dir + dirs - count=$(( 1 + (($clusters+1023)/1024)*2 + 1 + $dclust )) + count=$(((1 + (($clusters+255)/256)*2+3)/4 + 1 + $dclust )) fi dd if=/dev/zero bs=2k of=$basedir/boot/isolinux/efi.img count=$count }