balena-os / balena-raspberrypi

Balena support for RaspberryPI boards
https://www.balena.io/os/
Apache License 2.0
190 stars 73 forks source link

image-sign-rpi.bbclass: reorder tasks to avoid missing boot files #1134

Closed mtoman closed 2 months ago

mtoman commented 3 months ago

At this moment do_balena_signed_bootgen_and_deploy and do_image_balenaos_img tasks run in parallel, which is causing problems as do_image_balenaos_img needs to use the output of do_balena_signed_bootgen_and_deploy to generate the contents of the boot partition. Since the call to the signing server takes several seconds, sometimes boot.sig or boot.img or both are not included in the final image, depending on when do_image_balenaos_img is actually executed.

This patch reorders the tasks so that do_image_balenaos_img is only started after do_balena_signed_bootgen_and_deploy.

mtoman commented 3 months ago

@resin-jenkins retest this please

mtoman commented 3 months ago

@resin-jenkins retest this please

mtoman commented 3 months ago

@resin-jenkins retest this please