diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-09-07 13:01:13 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-09 14:24:57 +0100 |
commit | 3479e299b5f11dfcd3f5f97c4ad3e0449f6c6d6a (patch) | |
tree | e226dfde3fe4e306886a6773dbec72cb8a6df28e /scripts/lib/wic/kickstart | |
parent | acf90b6c299afe9e9c8fa33c3c6992bfcf40fbbf (diff) | |
download | openembedded-core-3479e299b5f11dfcd3f5f97c4ad3e0449f6c6d6a.tar.gz openembedded-core-3479e299b5f11dfcd3f5f97c4ad3e0449f6c6d6a.tar.bz2 openembedded-core-3479e299b5f11dfcd3f5f97c4ad3e0449f6c6d6a.zip |
wic: round variable before converting to int
Wic uses bitbake variable ROOTFS_SIZE to set correspondent
partition size. This variable is a literal representing
float value. Wic crashes trying to convert it to int with
the error: invalid literal for int() with base 10: '10166.0'
Fixed this by converting variable to float and rounding result.
This should work for int and float literals.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/kickstart')
0 files changed, 0 insertions, 0 deletions