summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRandolph Sapp <rs@ti.com>2023-05-01 11:04:21 -0500
committerSteve Sakoman <steve@sakoman.com>2023-05-10 04:19:57 -1000
commit2337b811401ee13dcd709ba26f2e532f822d6096 (patch)
tree30a4c82d7a5fb030d07bd8230744898980d05612 /scripts
parent1367249c996394668eaf97404874d7d13225a53d (diff)
downloadpoky-2337b811401ee13dcd709ba26f2e532f822d6096.tar.gz
wic/bootimg-efi: if fixed-size is set then use that for mkdosfs
This is a bit of a compatibility issue more than anything. Some devices get upset if the FAT file system contains less blocks than the partition. The fixed-size argument is currently respected by the partition creation step but not by the file system creation step. Let's make it so the file system respects this value as well. (From OE-Core rev: d16301ccdfb97bf126738262eec594008c282df1) Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-efi.py7
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 a65a5b9780..c28d3917c2 100644
--- a/scripts/lib/wic/plugins/source/bootimg-efi.py
+++ b/scripts/lib/wic/plugins/source/bootimg-efi.py
@@ -390,6 +390,13 @@ class BootimgEFIPlugin(SourcePlugin):
390 logger.debug("Added %d extra blocks to %s to get to %d total blocks", 390 logger.debug("Added %d extra blocks to %s to get to %d total blocks",
391 extra_blocks, part.mountpoint, blocks) 391 extra_blocks, part.mountpoint, blocks)
392 392
393 # required for compatibility with certain devices expecting file system
394 # block count to be equal to partition block count
395 if blocks < part.fixed_size:
396 blocks = part.fixed_size
397 logger.debug("Overriding %s to %d total blocks for compatibility",
398 part.mountpoint, blocks)
399
393 # dosfs image, created by mkdosfs 400 # dosfs image, created by mkdosfs
394 bootimg = "%s/boot.img" % cr_workdir 401 bootimg = "%s/boot.img" % cr_workdir
395 402