From 417fdf93cc3aec6c6312ffd514b924b00abafd25 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Mon, 31 Oct 2011 15:01:10 -0400 Subject: [PATCH] mkefiboot: add comment about where the number 17408 comes from --- src/sbin/mkefiboot | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sbin/mkefiboot b/src/sbin/mkefiboot index 9271a661..c4c05e83 100755 --- a/src/sbin/mkefiboot +++ b/src/sbin/mkefiboot @@ -61,6 +61,7 @@ def macbless(imgfile): def mkefidisk(efiboot, outfile): '''Make a bootable EFI disk image out of the given EFI boot image.''' + # pjones sez: "17408 is the size of the GPT tables parted creates" partsize = os.path.getsize(efiboot) + 17408 disksize = round_to_blocks(17408 + partsize, 512) with LoopDev(outfile, disksize) as loopdev: