diff options
-rwxr-xr-x | mkefipart-fat | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mkefipart-fat b/mkefipart-fat index 21bfdc8..1694c5e 100755 --- a/mkefipart-fat +++ b/mkefipart-fat @@ -10,10 +10,11 @@ fi img=efi-fat.img [ "$1" ] && img="$1" +rm -f "$img" # Stuff boot*.efi into a FAT filesystem, making it as small as possible. 24KiB # headroom seems to be enough; (x+31)/32*32 rounds up to multiple of 32. -mkfs.msdos -n EFI -C "$img" \ +mkfs.msdos -n KANOTIX_EFI -C "$img" \ $(( ($(stat -c %s binary/efi/boot/boot*.efi | awk '{s+=$1} END {print s}') / 1024 + 55) \ / 32 * 32 )) mmd -i "$img" ::efi |