Skip to content

Commit

Permalink
e2e: add Fedora support for vm-set-kernel-cmdline
Browse files Browse the repository at this point in the history
- Fixes topology-aware/n4c16/test08-isolcpus test on Fedora.
  • Loading branch information
askervin committed Dec 22, 2022
1 parent 6212479 commit a11cda4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions demo/lib/distro.bash
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,17 @@ fi
EOF
}

fedora-set-kernel-cmdline() {
local e2e_defaults="$*"
vm-command "mkdir -p /etc/default; touch /etc/default/grub; sed -i '/e2e:fedora-set-kernel-cmdline/d' /etc/default/grub"
vm-command "echo 'GRUB_CMDLINE_LINUX_DEFAULT=\"\${GRUB_CMDLINE_LINUX_DEFAULT} ${e2e_defaults}\" # by e2e:fedora-set-kernel-cmdline' >> /etc/default/grub" || {
command-error "writing new command line parameters failed"
}
vm-command "grub2-mkconfig -o /boot/grub2/grub.cfg" || {
command-error "updating grub failed"
}
}

fedora-33-install-crio-pre() {
fedora-install-crio-version 1.20
}
Expand Down

0 comments on commit a11cda4

Please sign in to comment.