mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
isoimage-isohybrid.py: Parameterize ESP partition size
Add "esp_extra_blocks" plugin parameter so that caller may change ESP's free space from the default 100 blocks. (From OE-Core rev: db4be094b0d6741ca4f9e2cbb499fc9c224fa690) Signed-off-by: Haris Okanovic <haris.okanovic@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
36bb63c3d2
commit
a98c7c7aa3
|
@ -336,11 +336,13 @@ class IsoImagePlugin(SourcePlugin):
|
|||
(img_iso_dir, isodir)
|
||||
exec_cmd(install_cmd)
|
||||
else:
|
||||
# Default to 100 blocks of extra space for file system overhead
|
||||
esp_extra_blocks = int(source_params.get('esp_extra_blocks', '100'))
|
||||
|
||||
du_cmd = "du -bks %s/EFI" % isodir
|
||||
out = exec_cmd(du_cmd)
|
||||
blocks = int(out.split()[0])
|
||||
# Add some extra space for file system overhead
|
||||
blocks += 100
|
||||
blocks += esp_extra_blocks
|
||||
logger.debug("Added 100 extra blocks to %s to get to %d "
|
||||
"total blocks", part.mountpoint, blocks)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user