]> code.ossystems Code Review - openembedded-core.git/commit
wic: Use overhead factor when creating partitions from rootfs directories
authorTom Zanussi <tom.zanussi@linux.intel.com>
Wed, 29 Oct 2014 22:04:20 +0000 (17:04 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Dec 2014 10:16:58 +0000 (10:16 +0000)
commitc376804d451a200bf697d3f34e68d58726f5233c
treec7d8698e02af63a129ec19ec2c35544c3d15282d
parent1cf1edcd28a002291622d04dd2d0ee2c67e329e4
wic: Use overhead factor when creating partitions from rootfs directories

When creating partitions sized to given rootfs directories, filesystem
creation could fail in cases where the calculated target partition
size was too small to contain the filesystem created using mkfs.  This
occurred in particular when creating partitions to contain very large
filesystems such as those containing sdk image artifacts.

This same limition is present in the oe-core image creation classes,
which can be readily see by changing IMAGE_OVERHEAD_FACTOR from the
default 1.3 to 1.0 and building a sato-sdk image.

It should be possible to calculate required sizes exactly given the
source rootfs and target filesystem types, but for now, to address the
specific problem users are hitting in such situations, we'll just do
exactly what oe-core does and define and use an IMAGE_OVERHEAD_FACTOR
or 1.3 in those cases.

Fixes [YOCTO #6863].

(From OE-Core rev: bbaef3ff5833fc1d97b7b028d7770834f62789da)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
scripts/lib/wic/kickstart/custom_commands/partition.py
scripts/lib/wic/utils/oe/misc.py