diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-28 20:31:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 20:31:57 +0100 |
commit | 275e9b855dd0a384a283174912c08f3f097101b5 (patch) | |
tree | d4033df5267c5913d644608934a0f7516c8a1805 /contrib/cirrus/packer/fedora_setup.sh | |
parent | 742093c2f27d79a76dbc45335e6f9458decff567 (diff) | |
parent | e95c493fec5cab6e487d73649641cec0c1567d2c (diff) | |
download | podman-275e9b855dd0a384a283174912c08f3f097101b5.tar.gz podman-275e9b855dd0a384a283174912c08f3f097101b5.tar.bz2 podman-275e9b855dd0a384a283174912c08f3f097101b5.zip |
Merge pull request #5342 from cevich/runc_in_f30
Force using runc in F30
Diffstat (limited to 'contrib/cirrus/packer/fedora_setup.sh')
-rw-r--r-- | contrib/cirrus/packer/fedora_setup.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/contrib/cirrus/packer/fedora_setup.sh b/contrib/cirrus/packer/fedora_setup.sh index 591a59a05..20014e5f3 100644 --- a/contrib/cirrus/packer/fedora_setup.sh +++ b/contrib/cirrus/packer/fedora_setup.sh @@ -8,7 +8,7 @@ set -e # Load in library (copied by packer, before this script was run) source /tmp/libpod/$SCRIPT_BASE/lib.sh -req_env_var SCRIPT_BASE PACKER_BUILDER_NAME GOSRC +req_env_var SCRIPT_BASE PACKER_BUILDER_NAME GOSRC FEDORA_BASE_IMAGE OS_RELEASE_ID OS_RELEASE_VER install_ooe @@ -17,9 +17,14 @@ trap "sudo rm -rf $GOPATH" EXIT $BIGTO ooe.sh sudo dnf update -y -echo "Enabling updates-testing repository" -$LILTO ooe.sh sudo dnf install -y 'dnf-command(config-manager)' -$LILTO ooe.sh sudo dnf config-manager --set-enabled updates-testing +# Do not enable update-stesting on the previous Fedora release +if [[ "$FEDORA_BASE_IMAGE" =~ "${OS_RELEASE_ID}-cloud-base-${OS_RELEASE_VER}" ]]; then + warn "Enabling updates-testing repository for image based on $FEDORA_BASE_IMAGE" + $LILTO ooe.sh sudo dnf install -y 'dnf-command(config-manager)' + $LILTO ooe.sh sudo dnf config-manager --set-enabled updates-testing +else + warn "NOT enabling updates-testing repository for image based on $PRIOR_FEDORA_BASE_IMAGE" +fi echo "Installing general build/test dependencies for Fedora '$OS_RELEASE_VER'" REMOVE_PACKAGES=() @@ -98,6 +103,7 @@ case "$OS_RELEASE_VER" in python2-future runc ) + REMOVE_PACKAGES+=(crun) ;; 31) INSTALL_PACKAGES+=(crun) |