Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
18 changes: 16 additions & 2 deletions tests/qm-kvm-test/libkrun/check_libkrun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@ enable_repo() {

install_libkrun() {
Comment thread
dougsland marked this conversation as resolved.
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"
if grep -qi "^ID=fedora" /etc/os-release; then
exec_cmd "dnf install --enablerepo=rawhide --setopt=reposdir=/etc/yum.repos.d --installroot=/usr/lib/qm/rootfs -y libkrun crun-krun libkrunfw"
fi
#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() {
Expand All @@ -20,7 +31,10 @@ check_libkrun() {
info_message "PASS: libkrun runs successfully."
}

enable_repo
if grep -qi "^ID=centos" /etc/os-release; then
enable_repo
fi

install_libkrun
check_libkrun