summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/partition.py
diff options
context:
space:
mode:
authorPaulo Neves <ptsneves@gmail.com>2018-02-25 17:49:26 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-04 11:35:40 +0000
commit2327e0f58528db752669c0342c59d0a2b390dd75 (patch)
treea71ad44c1ad03154b651ae76f41dafbce3d5d5fe /scripts/lib/wic/partition.py
parent5796b037d551e22c56ad4ed0e32a8e3939282cba (diff)
downloadpoky-2327e0f58528db752669c0342c59d0a2b390dd75.tar.gz
wic: Set a miniumum FAT16 volume size.
Set a miniumum FAT16 volume size because images are not valid to parted if this minimum value is not respected. The value set is determined experimentally forr a logical sector size of 512. This fixed my local problem but, there may be better solutions. (From OE-Core rev: f7dfb4d43247d3c13a4e0a3853007d63b9512b83) Signed-off-by: Paulo Neves <ptsneves@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/partition.py')
-rw-r--r--scripts/lib/wic/partition.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index 2178321404..3fe5c4e26c 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -322,7 +322,7 @@ class Partition():
322 322
323 dosfs_cmd = "mkdosfs %s -i %s %s %s -C %s %d" % \ 323 dosfs_cmd = "mkdosfs %s -i %s %s %s -C %s %d" % \
324 (label_str, self.fsuuid, size_str, extraopts, rootfs, 324 (label_str, self.fsuuid, size_str, extraopts, rootfs,
325 rootfs_size) 325 max(8250, rootfs_size))
326 exec_native_cmd(dosfs_cmd, native_sysroot) 326 exec_native_cmd(dosfs_cmd, native_sysroot)
327 327
328 mcopy_cmd = "mcopy -i %s -s %s/* ::/" % (rootfs, rootfs_dir) 328 mcopy_cmd = "mcopy -i %s -s %s/* ::/" % (rootfs, rootfs_dir)