]> code.ossystems Code Review - openembedded-core.git/commit
wic: Using the right rootfs size during prepare_rootfs
authorAlessio Igor Bogani <alessio.bogani@elettra.eu>
Thu, 26 Sep 2019 09:35:02 +0000 (11:35 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Sep 2019 12:01:17 +0000 (13:01 +0100)
commit0217a0392b8cc534fcc0d760b7663a1845b306f5
treea947b74989570854fa73e7aa531249fbe91a798c
parentba2df1fa43b79c4959911c1b0bcad996f255b7a8
wic: Using the right rootfs size during prepare_rootfs

The commit 8e48b4d6c4 makes wic ignores IMAGE_ROOTFS_SIZE for rootfs
size and makes it uses the computed one only. Re-add support for
IMAGE_ROOTFS_SIZE variable and compute roots size only if the former
is not defined. Moreover the size of a provided directory with
--rootfs-dir="" in the .wks file should always be computed on the fly,
else every partition will be constrained to be the same size as what
ever value was in ROOTFS_SIZE.

Signed-off-by: Alessio Igor Bogani <alessio.bogani@elettra.eu>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/partition.py