diff mbox series

[yocto-autobuilder2,v3,6/6] scripts/run-push-containers: remove all images before push

Message ID c21fe441965ef9fd801338f017109592dba8b9e0.1780710041.git.tim.orling@konsulko.com
State New
Headers show
Series [yocto-autobuilder2,v3,1/6] scripts: add vcontainer-tarball setup, integration, and publishing | expand

Commit Message

Tim Orling June 6, 2026, 2:51 a.m. UTC
From: Tim Orling <tim.orling@konsulko.com>

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 <tim.orling@konsulko.com>
---
 scripts/run-push-containers | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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)