diff options
Diffstat (limited to 'scripts/lib/mic/plugins/source/bootimg-pcbios.py')
| -rw-r--r-- | scripts/lib/mic/plugins/source/bootimg-pcbios.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/lib/mic/plugins/source/bootimg-pcbios.py b/scripts/lib/mic/plugins/source/bootimg-pcbios.py index 3cd446f052..fad150f940 100644 --- a/scripts/lib/mic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/mic/plugins/source/bootimg-pcbios.py | |||
| @@ -154,7 +154,15 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
| 154 | rc, out = exec_cmd(du_cmd) | 154 | rc, out = exec_cmd(du_cmd) |
| 155 | blocks = int(out.split()[0]) | 155 | blocks = int(out.split()[0]) |
| 156 | 156 | ||
| 157 | blocks += BOOTDD_EXTRA_SPACE | 157 | extra_blocks = part.get_extra_block_count(blocks) |
| 158 | |||
| 159 | if extra_blocks < BOOTDD_EXTRA_SPACE: | ||
| 160 | extra_blocks = BOOTDD_EXTRA_SPACE | ||
| 161 | |||
| 162 | blocks += extra_blocks | ||
| 163 | |||
| 164 | msger.debug("Added %d extra blocks to %s to get to %d total blocks" % \ | ||
| 165 | (extra_blocks, part.mountpoint, blocks)) | ||
| 158 | 166 | ||
| 159 | # Ensure total sectors is an integral number of sectors per | 167 | # Ensure total sectors is an integral number of sectors per |
| 160 | # track or mcopy will complain. Sectors are 512 bytes, and we | 168 | # track or mcopy will complain. Sectors are 512 bytes, and we |
