wic: fix partition size calculation
It was wrongly assumed that part.size is meagured in Mb. In fact it's in Kb, so there is no need to convert bitbake variable ROOTFS_SIZE as it's also in Kb. (From OE-Core rev: 3703ecb4aa5267e6d7330e7978cc7c3bb2250ead) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
219d73a6fa
commit
dd7726f0bc
|
@ -241,8 +241,7 @@ class DirectImageCreator(BaseImageCreator):
|
||||||
# IMAGE_OVERHEAD_FACTOR and IMAGE_ROOTFS_EXTRA_SPACE
|
# IMAGE_OVERHEAD_FACTOR and IMAGE_ROOTFS_EXTRA_SPACE
|
||||||
rsize_bb = get_bitbake_var('ROOTFS_SIZE', image_name)
|
rsize_bb = get_bitbake_var('ROOTFS_SIZE', image_name)
|
||||||
if rsize_bb:
|
if rsize_bb:
|
||||||
# convert from Kb to Mb
|
part.size = int(round(float(rsize_bb)))
|
||||||
part.size = int(round(float(rsize_bb) / 1024.))
|
|
||||||
# need to create the filesystems in order to get their
|
# need to create the filesystems in order to get their
|
||||||
# sizes before we can add them and do the layout.
|
# sizes before we can add them and do the layout.
|
||||||
# Image.create() actually calls __format_disks() to create
|
# Image.create() actually calls __format_disks() to create
|
||||||
|
|
Loading…
Reference in New Issue