This repository was archived by the owner on Oct 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ case ${TEST_DISTRO} in
71
71
fedora)
72
72
CLOUD_USER=${CLOUD_USER:- fedora}
73
73
EFI=${EFI:- false}
74
- TEST_DISTRO_VERSION=${TEST_DISTRO_VERSION:- 34 }
75
- FEDORA_CLOUDIMG_REL=${FEDORA_CLOUDIMG_REL:- 1.2 }
74
+ TEST_DISTRO_VERSION=${TEST_DISTRO_VERSION:- 36 }
75
+ FEDORA_CLOUDIMG_REL=${FEDORA_CLOUDIMG_REL:- 1.5 }
76
76
IMAGE_URL=${IMAGE_URL:- https:// download.fedoraproject.org/ pub/ fedora/ linux/ releases/ ${TEST_DISTRO_VERSION} / Cloud/ x86_64/ images}
77
77
CLOUD_IMAGE=${CLOUD_IMAGE:- Fedora-Cloud-Base-${TEST_DISTRO_VERSION} -${FEDORA_CLOUDIMG_REL} .x86_64.raw.xz}
78
78
;;
@@ -371,10 +371,14 @@ function init_kubernetes_cluster() (
371
371
vm_id=0
372
372
pids=" "
373
373
IPS=$( print_ips)
374
- # in Fedora-3[123] case, add a flag to kernel cmdline and reboot to disable cgroups v2
375
- if [[ " $TEST_DISTRO " = " fedora" && " $TEST_DISTRO_VERSION " =~ 3[1-4 ] ]]; then
374
+ # in Fedora-3[123... ] case, add a flag to kernel cmdline and reboot to disable cgroups v2
375
+ if [[ " $TEST_DISTRO " = " fedora" && " $TEST_DISTRO_VERSION " =~ 3[1-9 ] ]]; then
376
376
SYSTEMD_UNIFIED_CGROUP_HIERARCHY=systemd.unified_cgroup_hierarchy
377
377
for ip in ${IPS} ; do
378
+ # Disable zswap, permanently (https://fedoraproject.org/wiki/Changes/SwapOnZRAM#How_can_it_be_disabled?).
379
+ ssh $SSH_ARGS ${CLOUD_USER} @${ip} " sudo dnf -q -y remove zram-generator-defaults"
380
+ ssh $SSH_ARGS ${CLOUD_USER} @${ip} " sudo sed -i -e '/swap/d' /etc/fstab"
381
+
378
382
GRUB_BFS=$( ssh $SSH_ARGS ${CLOUD_USER} @${ip} " grep ^GRUB_ENABLE_BLSCFG /etc/default/grub | sed -e \" s;\(GRUB_ENABLE_BLSCFG=\)\(.*\);\2;g\" " )
379
383
# If BFS enabled use 'grubby' to modify kernel parameters
380
384
if [ $GRUB_BFS = " true" ]; then
You can’t perform that action at this time.
0 commit comments