This definitely doesn't work as is, for the case where you use additional
rootfs-dir variables in the .wks.in file.
I made a sample .wks.in file with the following and build core-image-minimal.
bootloader --ptable gpt
part / --source rootfs --ondisk sda --fstype=ext4 --label otaboot1 --align
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.
Signed-off-by: Alessio Igor Bogani
---
scripts/lib/wic/partition.py | 22