diff mbox series

[yocto-autobuilder-helper,v2,09/10] scripts/run-config: push_containers workaround

Message ID 242884114dd9bbeeac8bfca7dee5df4e19454f0f.1780354513.git.tim.orling@konsulko.com
State New
Headers show
Series [yocto-autobuilder-helper,v2,01/10] scripts/utils: fix stale extraction dir when tarball is updated | expand

Commit Message

Tim Orling June 1, 2026, 11:18 p.m. UTC
From: Tim Orling <tim.orling@konsulko.com>

Workaround for:
Error: reading blob sha256:<hash>: file integrity checksum failed for "<file>"

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-config | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/scripts/run-config b/scripts/run-config
index 0fe0385..03d921d 100755
--- a/scripts/run-config
+++ b/scripts/run-config
@@ -381,6 +381,8 @@  def handle_stepnum(stepnum):
                     # 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, stepnum)
                 version_recipe = utils.getconfigvar("CONTAINER_VERSION_RECIPE", ourconfig, args.target, stepnum)