summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-11-15 22:24:28 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-11-15 22:24:28 +0100
commit4b90e4105a4db3e25eef8cb29c027b1a1f0b6d81 (patch)
tree5462b43e574ba8511ba0f26d83685ebd11451550
parent992a58bcf94bccd1c132c2e862e45d4afab1c6bb (diff)
downloadkanotix-4b90e4105a4db3e25eef8cb29c027b1a1f0b6d81.zip
kanotix-4b90e4105a4db3e25eef8cb29c027b1a1f0b6d81.tar.gz
changed FAT-label to "KANOTIX_EFI" ("EFI" does not work everywhere)
-rwxr-xr-xmkefipart-fat3
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