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

[email protected]
Newsgroups org.yoctoproject.lists.yocto-patches
Message-ID <242884114dd9bbeeac8bfca7dee5df4e19454f0f.1780354513.git.tim.orling@konsulko.com>
From: Tim Orling <[email protected]>

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 <[email protected]>
---
 scripts/run-config | 2 ++
 1 file changed, 2 insertions(+)

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)
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.