mkefiboot: add comment about where the number 17408 comes from
This commit is contained in:
parent
7f149decea
commit
417fdf93cc
@ -61,6 +61,7 @@ def macbless(imgfile):
|
|||||||
|
|
||||||
def mkefidisk(efiboot, outfile):
|
def mkefidisk(efiboot, outfile):
|
||||||
'''Make a bootable EFI disk image out of the given EFI boot image.'''
|
'''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
|
partsize = os.path.getsize(efiboot) + 17408
|
||||||
disksize = round_to_blocks(17408 + partsize, 512)
|
disksize = round_to_blocks(17408 + partsize, 512)
|
||||||
with LoopDev(outfile, disksize) as loopdev:
|
with LoopDev(outfile, disksize) as loopdev:
|
||||||
|
Loading…
Reference in New Issue
Block a user