summaryrefslogtreecommitdiff
path: root/contrib/cirrus/setup_environment.sh
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2019-08-28 12:39:36 -0400
committerChris Evich <cevich@redhat.com>2020-02-25 12:34:24 -0500
commite0ca4a22604cd8b359328fb56a5499d3e1a36157 (patch)
tree950b97f3facaa9fb78189b60df613c7a342160a6 /contrib/cirrus/setup_environment.sh
parent3d37dc639d87e4469a6457cf4592ff5b773d0777 (diff)
downloadpodman-e0ca4a22604cd8b359328fb56a5499d3e1a36157.tar.gz
podman-e0ca4a22604cd8b359328fb56a5499d3e1a36157.tar.bz2
podman-e0ca4a22604cd8b359328fb56a5499d3e1a36157.zip
Cirrus: Support testing with F31
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/setup_environment.sh')
-rwxr-xr-xcontrib/cirrus/setup_environment.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/contrib/cirrus/setup_environment.sh b/contrib/cirrus/setup_environment.sh
index edd793bb9..4d4189aa6 100755
--- a/contrib/cirrus/setup_environment.sh
+++ b/contrib/cirrus/setup_environment.sh
@@ -47,6 +47,19 @@ case "${OS_RELEASE_ID}" in
setsebool container_manage_cgroup true
if [[ "$ADD_SECOND_PARTITION" == "true" ]]; then
bash "$SCRIPT_BASE/add_second_partition.sh"; fi
+
+ if [[ "$OS_RELEASE_VER" == "31" ]]; then
+ warn "Testing with crun instead of runc"
+ X=$(echo "export export OCI_RUNTIME=/usr/bin/crun" | \
+ tee -a /etc/environment) && eval "$X" && echo "$X"
+ warn "Upgrading to the latest crun"
+ # Normally not something to do for stable testing
+ # but crun is new, and late-breaking fixes may be required
+ # on short notice
+ dnf update -y crun
+ warn "Setting SELinux into Permissive mode"
+ setenforce 0
+ fi
;;
centos) # Current VM is an image-builder-image no local podman/testing
echo "No further setup required for VM image building"
@@ -62,9 +75,6 @@ source "$SCRIPT_BASE/lib.sh"
make install.tools
case "$SPECIALMODE" in
- cgroupv2)
- remove_packaged_podman_files # we're building from source
- ;;
none)
[[ -n "$CROSS_PLATFORM" ]] || \
remove_packaged_podman_files