summaryrefslogtreecommitdiff
path: root/contrib/cirrus/packer/fedora_setup.sh
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2019-07-19 10:46:36 -0400
committerChris Evich <cevich@redhat.com>2019-08-12 12:01:55 -0400
commit7508179ed973a1ad0d26754d39180be8066c7df4 (patch)
tree4ce6bf7c17899dba56868dac5d0c418353467455 /contrib/cirrus/packer/fedora_setup.sh
parentfd312ae30a8f23dd9fb26d2e72aa0b548b9f8453 (diff)
downloadpodman-7508179ed973a1ad0d26754d39180be8066c7df4.tar.gz
podman-7508179ed973a1ad0d26754d39180be8066c7df4.tar.bz2
podman-7508179ed973a1ad0d26754d39180be8066c7df4.zip
Cirrus: Add experimental fedora VM image & test
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/packer/fedora_setup.sh')
-rw-r--r--contrib/cirrus/packer/fedora_setup.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/contrib/cirrus/packer/fedora_setup.sh b/contrib/cirrus/packer/fedora_setup.sh
index e9b145391..f73df4182 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
+req_env_var SCRIPT_BASE PACKER_BUILDER_NAME GOSRC
install_ooe
@@ -85,6 +85,17 @@ systemd_banish
sudo /tmp/libpod/hack/install_catatonit.sh
+# Same script is used for several related contexts
+case "$PACKER_BUILDER_NAME" in
+ xfedora*)
+ echo "Configuring CGroups v2 enabled on next boot"
+ sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=1"
+ ;& # continue to next matching item
+ *)
+ echo "Finalizing $PACKER_BUILDER_NAME VM image"
+ ;;
+esac
+
rh_finalize
echo "SUCCESS!"