]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: Set a miniumum FAT16 volume size.
authorPaulo Neves <ptsneves@gmail.com>
Sun, 25 Feb 2018 16:49:26 +0000 (17:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Mar 2018 17:08:29 +0000 (17:08 +0000)
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.

Signed-off-by: Paulo Neves <ptsneves@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/partition.py

index 21783214040d4dcec350897862be9a700a3e0118..3fe5c4e26c427fcbfa632cb5595757d794ed3e7e 100644 (file)
@@ -322,7 +322,7 @@ class Partition():
 
         dosfs_cmd = "mkdosfs %s -i %s %s %s -C %s %d" % \
                     (label_str, self.fsuuid, size_str, extraopts, rootfs,
-                     rootfs_size)
+                     max(8250, rootfs_size))
         exec_native_cmd(dosfs_cmd, native_sysroot)
 
         mcopy_cmd = "mcopy -i %s -s %s/* ::/" % (rootfs, rootfs_dir)