mbox series

[isar-cip-core,v1,0/1] Set size for rootfs partition in .wks file for reproducibility

Message ID 20240702081708.3339644-1-Adithya.Balakumar@toshiba-tsip.com (mailing list archive)
Headers show
Series Set size for rootfs partition in .wks file for reproducibility | expand

Message

Adithya Balakumar July 2, 2024, 8:17 a.m. UTC
In the case where no size parameter is set in the wks file, wic estimates 
the rootfs size from the rootfs directory in WORKDIR, See [1]. 

Sometimes the ROOTFS_SIZE variable is not the same between builds, although 
the rootfs contents are identical. For the calculation of ROOTFS_SIZE, See [2]

This can lead to different partition images (in terms of number of blocks in 
each partiton image in case of an ext filesystem) which makes the partition 
images non-reproducible.

Although this patch doesn't fix the core problem, as in fixing the cause for the 
ROOTFS_SIZE changing between builds (probably a discussion for the ISAR ML), 
I feel that setting a reasonable size to the rootfs partition would not cause 
any harm and also help with reproducibility.

[1] https://github.com/ilbers/isar/blob/master/scripts/lib/wic/partition.py#L242
[2] https://github.com/ilbers/isar/blob/master/meta/classes/image.bbclass#L87


Adithya Balakumar (1):
  wic: Set size for rootfs partition

 wic/bbb.wks            | 2 +-
 wic/x86_64-generic.wks | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)