diff options
Diffstat (limited to 'scripts/lib/mic/plugins/source/bootimg-efi.py')
| -rw-r--r-- | scripts/lib/mic/plugins/source/bootimg-efi.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/lib/mic/plugins/source/bootimg-efi.py b/scripts/lib/mic/plugins/source/bootimg-efi.py index 3e0997bacf..1974b062b2 100644 --- a/scripts/lib/mic/plugins/source/bootimg-efi.py +++ b/scripts/lib/mic/plugins/source/bootimg-efi.py | |||
| @@ -131,7 +131,15 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 131 | rc, out = exec_cmd(du_cmd) | 131 | rc, out = exec_cmd(du_cmd) |
| 132 | blocks = int(out.split()[0]) | 132 | blocks = int(out.split()[0]) |
| 133 | 133 | ||
| 134 | blocks += BOOTDD_EXTRA_SPACE | 134 | extra_blocks = part.get_extra_block_count(blocks) |
| 135 | |||
| 136 | if extra_blocks < BOOTDD_EXTRA_SPACE: | ||
| 137 | extra_blocks = BOOTDD_EXTRA_SPACE | ||
| 138 | |||
| 139 | blocks += extra_blocks | ||
| 140 | |||
| 141 | msger.debug("Added %d extra blocks to %s to get to %d total blocks" % \ | ||
| 142 | (extra_blocks, part.mountpoint, blocks)) | ||
| 135 | 143 | ||
| 136 | # Ensure total sectors is an integral number of sectors per | 144 | # Ensure total sectors is an integral number of sectors per |
| 137 | # track or mcopy will complain. Sectors are 512 bytes, and we | 145 | # track or mcopy will complain. Sectors are 512 bytes, and we |
