From 5b8463601188664d08ab8de5bce690f369b2658c Mon Sep 17 00:00:00 2001 From: Helena Greebe Date: Thu, 17 Oct 2024 14:00:54 -0400 Subject: [PATCH] Kernel --- .../resources/install_packages/install_packages_rocky8.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/aws-parallelcluster-platform/resources/install_packages/install_packages_rocky8.rb b/cookbooks/aws-parallelcluster-platform/resources/install_packages/install_packages_rocky8.rb index 4f72352e5..857067fe2 100644 --- a/cookbooks/aws-parallelcluster-platform/resources/install_packages/install_packages_rocky8.rb +++ b/cookbooks/aws-parallelcluster-platform/resources/install_packages/install_packages_rocky8.rb @@ -25,10 +25,10 @@ bash "Install kernel source" do user 'root' code <<-INSTALL_KERNEL_SOURCE - package="#{kernel_source_package}-$(uname -r)" + package="#{kernel_source_package}-$#{node['platform_version']}" # try to install kernel source for a specific release version - dnf install -y ${package} --releasever #{node['platform_version']} + dnf install -y #{kernel_source_package} --releasever #{node['platform_version']} if [ $? -ne 0 ]; then # Previous releases are moved into a vault area once a new minor release version is available for at least a week. # https://wiki.rockylinux.org/rocky/repo/#notes-on-devel