From b4d3a79b56244388b3805418bb456687d6f47b25 Mon Sep 17 00:00:00 2001 From: Hyounggyu Choi Date: Mon, 7 Nov 2022 16:06:50 +0100 Subject: [PATCH] CC: Make agent build differently for image-rs on s390x This is just to keep the support for s390x without the cosign verification while looking for a solution for #5582. Fixes: #5599 Signed-off-by: Hyounggyu Choi --- src/agent/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/agent/Makefile b/src/agent/Makefile index f0e86fd6bc..c010888dab 100644 --- a/src/agent/Makefile +++ b/src/agent/Makefile @@ -85,6 +85,14 @@ ifeq ($(INIT),no) UNIT_FILES += kata-containers.target endif +# The following will be reverted, after +# https://github.com/kata-containers/kata-containers/issues/5582 +# is resolved. +IMAGE_RS_COMMIT = a1d7ba31201d9d7a575d05c5fed1f2cb2142a842 +ifeq ($(ARCH),s390x) + $(shell sed -i -e "s/^\(image-rs.*\)tag\(.*\)/\1rev\2/" -e "s/^\(image-rs.*rev = \"\).*\(\".*\)/\1$(IMAGE_RS_COMMIT)\2/" Cargo.toml) +endif + # Display name of command and it's version (or a message if not available). # # Arguments: