summaryrefslogtreecommitdiff
path: root/mkefipart-fat
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-11-18 19:26:10 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-11-18 19:26:10 +0100
commitba23aa9a487c598211a27d51a613894af435fb03 (patch)
tree58dec294973ec919829c5cdd42b4a01836c0c678 /mkefipart-fat
parentf3ad1b9576e9a26cee97b6c38beb726dacd4b857 (diff)
downloadkanotix-ba23aa9a487c598211a27d51a613894af435fb03.zip
kanotix-ba23aa9a487c598211a27d51a613894af435fb03.tar.gz
added FAT-Partition to Apple-Partition-Map
Diffstat (limited to 'mkefipart-fat')
-rwxr-xr-xmkefipart-fat27
1 files changed, 0 insertions, 27 deletions
diff --git a/mkefipart-fat b/mkefipart-fat
deleted file mode 100755
index 25e2828..0000000
--- a/mkefipart-fat
+++ /dev/null
@@ -1,27 +0,0 @@
-#! /bin/sh
-# mkefipart-fat - written by Andreas Loibl <andreas@andreas-loibl.de>
-#
-# Generate an image for a FAT-EFI-partition
-
-if [ ! -x /usr/bin/mmd ]; then
- echo "Error: mtools are needed! Run: apt-get install mtools"
- exit 1
-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 KANOTIX_EFI -C "$img" \
- $(( ($(stat -c %s binary/efi/boot/boot*.efi | awk '{s+=$1} END {print s}') / 1024 + 1023) \
- / 1024 * 1024 ))
-mmd -i "$img" ::efi
-mmd -i "$img" ::efi/boot
-for file in binary/efi/boot/boot*.efi
-do
- mcopy -i "$img" $file "::efi/boot/$(basename "$file")"
-done
-
-exit 0