Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
test: bump to Fedora 36
Browse files Browse the repository at this point in the history
Fedora 34 is EOL.
  • Loading branch information
pohly committed Aug 5, 2022
1 parent 5936c80 commit 42423d4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/start-kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ case ${TEST_DISTRO} in
fedora)
CLOUD_USER=${CLOUD_USER:-fedora}
EFI=${EFI:-false}
TEST_DISTRO_VERSION=${TEST_DISTRO_VERSION:-34}
FEDORA_CLOUDIMG_REL=${FEDORA_CLOUDIMG_REL:-1.2}
TEST_DISTRO_VERSION=${TEST_DISTRO_VERSION:-36}
FEDORA_CLOUDIMG_REL=${FEDORA_CLOUDIMG_REL:-1.5}
IMAGE_URL=${IMAGE_URL:-https://download.fedoraproject.org/pub/fedora/linux/releases/${TEST_DISTRO_VERSION}/Cloud/x86_64/images}
CLOUD_IMAGE=${CLOUD_IMAGE:-Fedora-Cloud-Base-${TEST_DISTRO_VERSION}-${FEDORA_CLOUDIMG_REL}.x86_64.raw.xz}
;;
Expand Down Expand Up @@ -371,10 +371,14 @@ function init_kubernetes_cluster() (
vm_id=0
pids=""
IPS=$(print_ips)
# in Fedora-3[123] case, add a flag to kernel cmdline and reboot to disable cgroups v2
if [[ "$TEST_DISTRO" = "fedora" && "$TEST_DISTRO_VERSION" =~ 3[1-4] ]]; then
# in Fedora-3[123...] case, add a flag to kernel cmdline and reboot to disable cgroups v2
if [[ "$TEST_DISTRO" = "fedora" && "$TEST_DISTRO_VERSION" =~ 3[1-9] ]]; then
SYSTEMD_UNIFIED_CGROUP_HIERARCHY=systemd.unified_cgroup_hierarchy
for ip in ${IPS}; do
# Disable zswap, permanently (https://fedoraproject.org/wiki/Changes/SwapOnZRAM#How_can_it_be_disabled?).
ssh $SSH_ARGS ${CLOUD_USER}@${ip} "sudo dnf -q -y remove zram-generator-defaults"
ssh $SSH_ARGS ${CLOUD_USER}@${ip} "sudo sed -i -e '/swap/d' /etc/fstab"

GRUB_BFS=$(ssh $SSH_ARGS ${CLOUD_USER}@${ip} "grep ^GRUB_ENABLE_BLSCFG /etc/default/grub | sed -e \"s;\(GRUB_ENABLE_BLSCFG=\)\(.*\);\2;g\"")
# If BFS enabled use 'grubby' to modify kernel parameters
if [ $GRUB_BFS = "true" ]; then
Expand Down

0 comments on commit 42423d4

Please sign in to comment.