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-25 05:49:26 -1000
commitb2cec0246c539b13681410d95e0cc729047a2243 (patch)
treebcf54b477935dc4cf200af475308294092b73845 /scripts
parent2aeb276dd50a0c0f91200f6fe8d357ffd623ed48 (diff)
downloadpoky-b2cec0246c539b13681410d95e0cc729047a2243.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: 2126242c19b0c3dea12c605da8b24b08a9cb803f) Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> (cherry picked from commit d16301ccdfb97bf126738262eec594008c282df1) 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 2cfdc10ecd..05e8471116 100644
--- a/scripts/lib/wic/plugins/source/bootimg-efi.py
+++ b/scripts/lib/wic/plugins/source/bootimg-efi.py
@@ -277,6 +277,13 @@ class BootimgEFIPlugin(SourcePlugin):
277 logger.debug("Added %d extra blocks to %s to get to %d total blocks", 277 logger.debug("Added %d extra blocks to %s to get to %d total blocks",
278 extra_blocks, part.mountpoint, blocks) 278 extra_blocks, part.mountpoint, blocks)
279 279
280 # required for compatibility with certain devices expecting file system
281 # block count to be equal to partition block count
282 if blocks < part.fixed_size:
283 blocks = part.fixed_size
284 logger.debug("Overriding %s to %d total blocks for compatibility",
285 part.mountpoint, blocks)
286
280 # dosfs image, created by mkdosfs 287 # dosfs image, created by mkdosfs
281 bootimg = "%s/boot.img" % cr_workdir 288 bootimg = "%s/boot.img" % cr_workdir
282 289