From 2d2dd7fdbe907a855f60cfd3a5c3c4bac15f03f4 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 21 Apr 2025 16:51:28 -0700 Subject: [PATCH] ci: upgrade to criu-4.1-2 in Fedora Package criu-4.1-1 has a known bug [1] which is fixed in criu-4.1-2 [2], which is currently only available in updates-testing. Add a kludge to install newer criu if necessary to fix CI. This will not be needed in ~2 weeks once the new package is promoted to updates. [1]: https://github.com/checkpoint-restore/criu/issues/2650 [2]: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d374d8ce17 Signed-off-by: Kir Kolyshkin (cherry picked from commit 3e3e04824db87614d2f774595af97deb934e465d) Signed-off-by: Kir Kolyshkin --- script/setup_host_fedora.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/setup_host_fedora.sh b/script/setup_host_fedora.sh index 919e89688..efe6a001d 100755 --- a/script/setup_host_fedora.sh +++ b/script/setup_host_fedora.sh @@ -7,6 +7,13 @@ for i in $(seq 0 2); do sleep "$i" "${DNF[@]}" update && "${DNF[@]}" install "${RPMS[@]}" && break done + +# criu-4.1-1 has a known bug (https://github.com/checkpoint-restore/criu/issues/2650) +# which is fixed in criu-4.1-2 (currently in updates-testing). TODO: remove this later. +if [[ $(rpm -q criu) == "criu-4.1-1.fc"* ]]; then + "${DNF[@]}" --enablerepo=updates-testing update criu +fi + dnf clean all # To avoid "avc: denied { nosuid_transition }" from SELinux as we run tests on /tmp.