summaryrefslogtreecommitdiff
path: root/mkefipart-fat
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-11-18 01:40:10 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-11-18 01:40:10 +0100
commitf3ad1b9576e9a26cee97b6c38beb726dacd4b857 (patch)
tree06d648b098bce02c56c9b1075e44132c9c0cc884 /mkefipart-fat
parent1bfe9bead76041cce4fbd3cb8e6a12911c2ec12e (diff)
downloadkanotix-f3ad1b9576e9a26cee97b6c38beb726dacd4b857.zip
kanotix-f3ad1b9576e9a26cee97b6c38beb726dacd4b857.tar.gz
added hooks to include firmware-rpms in EFI-FAT partition
Diffstat (limited to 'mkefipart-fat')
-rwxr-xr-xmkefipart-fat4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkefipart-fat b/mkefipart-fat
index 1694c5e..25e2828 100755
--- a/mkefipart-fat
+++ b/mkefipart-fat
@@ -15,8 +15,8 @@ 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 + 55) \
- / 32 * 32 ))
+ $(( ($(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