From 1a49fa1990dbaae19a08a9d60de1bedf9e023694 Mon Sep 17 00:00:00 2001 From: Douglas Schilling Landgraf Date: Wed, 21 Jan 2026 10:29:01 -0500 Subject: [PATCH 1/2] ci/cd: fix libkrun issue Internal(Vm) fixes Internal(Vm(SetMemoryAttributes(Error(22)))) issue. libkrun 1.17 includes the issue but currently it's in rawhide only. Signed-off-by: Douglas Schilling Landgraf --- setup | 2 +- tests/qm-kvm-test/libkrun/check_libkrun.sh | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/setup b/setup index 356fbfcc..8f916ab1 100755 --- a/setup +++ b/setup @@ -251,7 +251,7 @@ EOF fi fi - cmd_dnf_install="dnf -y install --releasever=${VERSION_ID} --setopt=reposdir=${ROOTFS}/etc/yum.repos.d --installroot ${ROOTFS} libkrun crun-krun bluechi-agent ${EXTRA_FLAG}" + cmd_dnf_install="dnf -y install --releasever=${VERSION_ID} --setopt=reposdir=${ROOTFS}/etc/yum.repos.d --installroot ${ROOTFS} bluechi-agent ${EXTRA_FLAG}" ${cmd_dnf_install} dnf -y update --installroot "${ROOTFS}" diff --git a/tests/qm-kvm-test/libkrun/check_libkrun.sh b/tests/qm-kvm-test/libkrun/check_libkrun.sh index 3e482e33..124b1f2f 100644 --- a/tests/qm-kvm-test/libkrun/check_libkrun.sh +++ b/tests/qm-kvm-test/libkrun/check_libkrun.sh @@ -11,7 +11,15 @@ enable_repo() { install_libkrun() { info_message "install_libkrun(): install libkrun and crun-krun" - exec_cmd "dnf install --setopt=reposdir=/etc/yum.repos.d --installroot=/usr/lib/qm/rootfs -y libkrun crun-krun" + # Adding rawhide as 1.17 fixes Internal(Vm(SetMemoryAttributes(Error(22)))) + # See-Also: https://github.com/containers/qm/pull/959 + if grep -qi "^ID=fedora" /etc/os-release; then + # Need the remove as soon the land in stable channel + exec_cmd "dnf install --installroot=/usr/lib/qm/rootfs -y fedora-repos-rawhide" + fi + exec_cmd "cat /usr/lib/qm/rootfs/etc/yum.repos.d/*" + exec_cmd "dnf repolist --all --setopt=reposdir=/etc/yum.repos.d" + exec_cmd "dnf install --use-host-config --releasever=rawhide --enablerepo=rawhide --setopt=reposdir=/etc/yum.repos.d --installroot=/usr/lib/qm/rootfs -y libkrun crun-krun libkrunfw" } check_libkrun() { @@ -20,6 +28,10 @@ check_libkrun() { info_message "PASS: libkrun runs successfully." } +#if grep -qi "^ID=centos" /etc/os-release; then +# enable_repo +#fi + enable_repo install_libkrun check_libkrun From dc6fabc2e74f82b02bc7109d5afab1ef7d60fa9e Mon Sep 17 00:00:00 2001 From: Douglas Schilling Landgraf Date: Mon, 26 Jan 2026 16:09:38 -0500 Subject: [PATCH 2/2] [do not merge] ci/cd: test Signed-off-by: Douglas Schilling Landgraf --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 312063f8..b0315626 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Topics +# Topicstest - [Topics](#topics) - [QM is a containerized environment for running functional safety Quality Management software](#qm-is-a-containerized-environment-for-running-functional-safety-quality-management-software)