diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-09-10 15:38:03 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-21 15:20:08 +0100 |
commit | 3703ecb4aa5267e6d7330e7978cc7c3bb2250ead (patch) | |
tree | 419a0b7c86627655728565f1ecfcc803c21288b8 /scripts/lib/wic | |
parent | bc056b69987bf54199d4452df8c4567dc23f32ae (diff) | |
download | openembedded-core-3703ecb4aa5267e6d7330e7978cc7c3bb2250ead.tar.gz openembedded-core-3703ecb4aa5267e6d7330e7978cc7c3bb2250ead.tar.bz2 openembedded-core-3703ecb4aa5267e6d7330e7978cc7c3bb2250ead.zip |
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.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r-- | scripts/lib/wic/imager/direct.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py index 146a0d1535..d5603fa915 100644 --- a/scripts/lib/wic/imager/direct.py +++ b/scripts/lib/wic/imager/direct.py @@ -241,8 +241,7 @@ class DirectImageCreator(BaseImageCreator): # IMAGE_OVERHEAD_FACTOR and IMAGE_ROOTFS_EXTRA_SPACE rsize_bb = get_bitbake_var('ROOTFS_SIZE', image_name) if rsize_bb: - # convert from Kb to Mb - part.size = int(round(float(rsize_bb) / 1024.)) + part.size = int(round(float(rsize_bb))) # need to create the filesystems in order to get their # sizes before we can add them and do the layout. # Image.create() actually calls __format_disks() to create |