]> code.ossystems Code Review - openembedded-core.git/commit
wic: keep rootfs_size as integer
authorAlexander Kanavin <alex.kanavin@gmail.com>
Fri, 17 Sep 2021 12:59:20 +0000 (14:59 +0200)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 4 Oct 2021 02:46:18 +0000 (10:46 +0800)
commit5b6cd58a000c4a1eaac95e37a047838df6478305
treeb8303e1dd6d617655c97688226f7cc0a75efde2b
parentc2531bf2503e8dd736bba0acde9e329a439f3fda
wic: keep rootfs_size as integer

The corrected line accidentally converted it to float,
which causes problems later on with python 3.10:

|   File "/home/alex/development/poky/scripts/lib/wic/partition.py", line 278, in prepare_rootfs_ext
|     os.ftruncate(sparse.fileno(), rootfs_size * 1024)
| TypeError: 'float' object cannot be interpreted as an integer

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d1d260dd2d196d10379ed9e238bcb34f39f3a3b7)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
scripts/lib/wic/partition.py