]> code.ossystems Code Review - openembedded-core.git/commit
image-live: fix check for rootfs size with hddimg images
authorAnuj Mittal <anuj.mittal@intel.com>
Tue, 10 Jul 2018 08:41:41 +0000 (16:41 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Jul 2018 15:32:38 +0000 (16:32 +0100)
commit16956dacd4be2c64e5816ccb2b222b5b128838c9
tree7a1471993f15864846e7f2ca1a2c2256751eba7f
parenteade50afbc267f2e4c6065745cd786e48332086b
image-live: fix check for rootfs size with hddimg images

Currently we check if the rootfs.img size is greater than 4 GB and use
mcopy to copy it over to a hddimg, a FAT32 volume.

This results in problems when IMAGE_ROOTFS_SIZE is set to be exact 4 GB
(4294967296 bytes). mcopy uses the max offset/file size to be 4294967295
and as a result, it errors out without any warning to the user.

Change the 4 GB check to '-ge' to catch these cases. Since we allow
IMAGE_ROOTFS_SIZE to be in KBs, the maximum allowed is 4194303 KB. Also,
tweaked the error message to refer to wic too.

Fixes [YOCTO #12776]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/image-live.bbclass