[yocto-autobuilder2][PATCH v3 6/6] scripts/run-push-containers: remove all images before push
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <c21fe441965ef9fd801338f017109592dba8b9e0.1780710041.git.tim.orling@konsulko.com> |
From: Tim Orling <[email protected]> Workaround for errors like: Error: reading blob sha256:<hash>: file integrity checksum failed for "<file>" Error: reading blob sha256:<hash>: EOF The first time the blob (e.g. bin/bash.bash) is copied, it succeeds. All subsequent tries fail. Might possibly be an issue with sstate or a recent change to vcontainer-common to allow for multiarch containers. Signed-off-by: Tim Orling <[email protected]> --- scripts/run-push-containers | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/run-push-containers b/scripts/run-push-containers index cdef497..4f1ac53 100755 --- a/scripts/run-push-containers +++ b/scripts/run-push-containers @@ -94,6 +94,8 @@ script = [ # password from stdin (see login case in vcontainer-common.sh). "trap '%s-$(arch) memres stop 2>/dev/null || true' EXIT" % runtime, "%s-$(arch) --config %s memres restart </dev/null" % (runtime, auth_config), + # workaround for 'Error: reading blob sha256:<hash>: file integrity checksum failed for "<file>"' + "%s-$(arch) image rm --all 2>/dev/null" % (runtime), ] tag_cmds = utils.getconfiglist("CONTAINER_TAG_CMDS", ourconfig, args.target, args.stepnum) version_recipe = utils.getconfigvar("CONTAINER_VERSION_RECIPE", ourconfig, args.target, args.stepnum) -- 2.43.0