From f96179b885fdf0c96fd98643f33b844a56873ee6 Mon Sep 17 00:00:00 2001 From: Daniel Diblik <8378124+danmyway@users.noreply.github.com> Date: Thu, 30 May 2024 12:39:58 +0200 Subject: [PATCH] Fix failing artifact installation on Alma 8.8 (#1246) * the new gpg key is messing with convert2rhel installation * import the key as a part of the tf_post_install_script Signed-off-by: Daniel Diblik --- .packit.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.packit.yaml b/.packit.yaml index a589bbc659..92de600817 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -186,7 +186,11 @@ jobs: use_internal_tf: True # For some targets we use official AWS marketplace images, those do not support root ssh login as default, # therefore we need to pass post-install-script to enable root login on the host - tf_post_install_script: '#!/bin/bash\nsudo sed -i "s/^.*ssh-rsa/ssh-rsa/" /root/.ssh/authorized_keys' + # Additionally on Alma 8.8 there is an issue with installing convert2rhel testing artifact due to + # messed up GPG keys, when the artifact is installed the repositories are not pinned to 8.8 + # thus the dependencies are installed from the latest release, the new GPG key needed for installation + # of new packages is not imported at that point, we need to install them manually + tf_post_install_script: '#!/bin/bash\nsudo sed -i "s/^.*ssh-rsa/ssh-rsa/" /root/.ssh/authorized_keys; rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux' targets: epel-8-x86_64: distros: ["AlmaLinux OS 8.8.20230524 x86_64"]