summaryrefslogtreecommitdiff
path: root/contrib/cirrus/packer/xfedora_setup.sh
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-07-28 10:12:55 -0400
committerGitHub <noreply@github.com>2020-07-28 10:12:55 -0400
commit288ebec6e737c105fa0ef43412de4e0a8997feb9 (patch)
tree57eb1b59866fd63b7618b885fcbfb1e614709cf4 /contrib/cirrus/packer/xfedora_setup.sh
parent6ed9868a34a875359852a910c23248946de59d20 (diff)
parenta5e37ad2805b2594339e0d5d41da0e0cc37e4f4a (diff)
downloadpodman-288ebec6e737c105fa0ef43412de4e0a8997feb9.tar.gz
podman-288ebec6e737c105fa0ef43412de4e0a8997feb9.tar.bz2
podman-288ebec6e737c105fa0ef43412de4e0a8997feb9.zip
Merge pull request #6909 from rhatdan/podman
Switch all references to github.com/containers/libpod -> podman
Diffstat (limited to 'contrib/cirrus/packer/xfedora_setup.sh')
-rw-r--r--[l---------]contrib/cirrus/packer/xfedora_setup.sh35
1 files changed, 34 insertions, 1 deletions
diff --git a/contrib/cirrus/packer/xfedora_setup.sh b/contrib/cirrus/packer/xfedora_setup.sh
index 5e9f1ec77..25b568e8a 120000..100644
--- a/contrib/cirrus/packer/xfedora_setup.sh
+++ b/contrib/cirrus/packer/xfedora_setup.sh
@@ -1 +1,34 @@
-fedora_setup.sh \ No newline at end of file
+#!/bin/bash
+
+# This script is called by packer on the subject fedora VM, to setup the podman
+# build/test environment. It's not intended to be used outside of this context.
+
+set -e
+
+# Load in library (copied by packer, before this script was run)
+source $GOSRC/$SCRIPT_BASE/lib.sh
+
+req_env_var SCRIPT_BASE PACKER_BASE INSTALL_AUTOMATION_VERSION PACKER_BUILDER_NAME GOSRC FEDORA_BASE_IMAGE OS_RELEASE_ID OS_RELEASE_VER
+
+workaround_bfq_bug
+
+# Do not enable updates-testing on the previous Fedora release
+if [[ "$PRIOR_FEDORA_BASE_IMAGE" =~ "${OS_RELEASE_ID}-cloud-base-${OS_RELEASE_VER}" ]]; then
+ DISABLE_UPDATES_TESTING=1
+else
+ DISABLE_UPDATES_TESTING=0
+fi
+
+bash $PACKER_BASE/fedora_packaging.sh
+# Load installed environment right now (happens automatically in a new process)
+source /usr/share/automation/environment
+
+echo "Enabling cgroup management from containers"
+ooe.sh sudo setsebool container_manage_cgroup true
+
+# Ensure there are no disruptive periodic services enabled by default in image
+systemd_banish
+
+rh_finalize
+
+echo "SUCCESS!"