diff options
Diffstat (limited to 'scripts/lib/wic/plugins/source')
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-efi.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py index d6aeab2aad..43c6fd94d9 100644 --- a/scripts/lib/wic/plugins/source/bootimg-efi.py +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py | |||
@@ -439,6 +439,13 @@ class BootimgEFIPlugin(SourcePlugin): | |||
439 | logger.debug("Added %d extra blocks to %s to get to %d total blocks", | 439 | logger.debug("Added %d extra blocks to %s to get to %d total blocks", |
440 | extra_blocks, part.mountpoint, blocks) | 440 | extra_blocks, part.mountpoint, blocks) |
441 | 441 | ||
442 | # required for compatibility with certain devices expecting file system | ||
443 | # block count to be equal to partition block count | ||
444 | if blocks < part.fixed_size: | ||
445 | blocks = part.fixed_size | ||
446 | logger.debug("Overriding %s to %d total blocks for compatibility", | ||
447 | part.mountpoint, blocks) | ||
448 | |||
442 | # dosfs image, created by mkdosfs | 449 | # dosfs image, created by mkdosfs |
443 | bootimg = "%s/boot.img" % cr_workdir | 450 | bootimg = "%s/boot.img" % cr_workdir |
444 | 451 | ||