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.
At this moment
do_balena_signed_bootgen_and_deploy
anddo_image_balenaos_img
tasks run in parallel, which is causing problems asdo_image_balenaos_img
needs to use the output ofdo_balena_signed_bootgen_and_deploy
to generate the contents of the boot partition. Since the call to the signing server takes several seconds, sometimesboot.sig
orboot.img
or both are not included in the final image, depending on whendo_image_balenaos_img
is actually executed.This patch reorders the tasks so that
do_image_balenaos_img
is only started afterdo_balena_signed_bootgen_and_deploy
.