advancedtelematic / meta-updater

OTA Software updates using OSTree
MIT License
161 stars 61 forks source link

calculate_size function is redundant #789

Closed aodukha closed 3 years ago

aodukha commented 3 years ago

It is port of https://github.com/advancedtelematic/meta-updater/pull/787 for dunfel branch CI for this https://main.gitlab.in.here.com/olp/edge/ota/connect/client/meta-updater/-/pipelines/1706123

Original description: We dont have to maintain our own function calculate_size and use dd/mkfs.ext4 to generate ota-ext4 image, they have been done in OE by get_rootfs_size/oe_mkext234fs functions, we could just use them.

The major benefit could be we can sync the future fixes/changes in these functions from OE, also avoid maintaining some duplicated code in image_types_ota.bbclass.