diff --git a/test/image-blueprints-bootc/templates/build-serialsim.sh.template b/test/image-blueprints-bootc/templates/build-serialsim.sh.template index da4a39629a..05c90e4a12 100644 --- a/test/image-blueprints-bootc/templates/build-serialsim.sh.template +++ b/test/image-blueprints-bootc/templates/build-serialsim.sh.template @@ -13,15 +13,9 @@ function get_kernel_ver() { # Set the current kernel version and architecture variables. get_kernel_ver -source /etc/os-release -if [[ "${ID}" == "rhel" ]] ; then - # On RHEL, always install the kernel-devel package for the current kernel version. - dnf install -y "kernel-devel-${KERNEL_VER}" -else - # On CentOS, attempt to install the kernel-devel package for the current kernel - # version, falling back to kernel-devel-matched if the former is not available. - dnf install -y "kernel-devel-${KERNEL_VER}" || dnf install -y kernel-devel-matched -fi +# Attempt to install the kernel-devel package for the current kernel version, +# falling back to kernel-devel-matched if the former is not available. +dnf install -y "kernel-devel-${KERNEL_VER}" || dnf install -y kernel-devel-matched # Reset the current kernel version and architecture variables. get_kernel_ver