summaryrefslogtreecommitdiff
path: root/config/binary_local-hooks/mkefipart-fat
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-03-08 22:19:39 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2012-03-08 22:19:39 +0100
commit7a9152c0ae2d26d1445f1dc20fc2cc708d2432c2 (patch)
treed541118589556dd11e4b149c8a3286b4d1e53cd4 /config/binary_local-hooks/mkefipart-fat
parentc0186754062c6c8380ce5a17a1cdc32092d504eb (diff)
downloadkanotix-7a9152c0ae2d26d1445f1dc20fc2cc708d2432c2.zip
kanotix-7a9152c0ae2d26d1445f1dc20fc2cc708d2432c2.tar.gz
updated isohybrid-acritox
Diffstat (limited to 'config/binary_local-hooks/mkefipart-fat')
-rwxr-xr-xconfig/binary_local-hooks/mkefipart-fat40
1 files changed, 0 insertions, 40 deletions
diff --git a/config/binary_local-hooks/mkefipart-fat b/config/binary_local-hooks/mkefipart-fat
deleted file mode 100755
index a81d520..0000000
--- a/config/binary_local-hooks/mkefipart-fat
+++ /dev/null
@@ -1,40 +0,0 @@
-#! /bin/sh
-# mkefipart-fat - written by Andreas Loibl <andreas@andreas-loibl.de>
-#
-# Generate an image for a FAT-EFI-partition
-
-case "$LB_BOOTLOADER" in
-grub2|burg)
- ;;
-*)
- exit 0
- ;;
-esac
-
-
-if [ ! -x /usr/bin/mmd ]; then
- echo "Error: mtools are needed! Run: apt-get install mtools"
- exit 1
-fi
-
-img=binary/boot.efi.img
-[ "$1" ] && img="$1"
-rm -f "$img"
-
-# Stuff boot*.efi into a FAT filesystem,
-# (x+1023)/1024*1024 rounds up to multiple of MB.
-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
-
-# hide the FAT-EFI-partition from the Mac Bootloader by f***ing up the "EFI" directory entry
-mattrib -i "$img" +h ::efi
-sed -i -e '0,/EFI /s/EFI /efi /' "$img"
-
-exit 0