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 21780db7b..4f72352e5 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,7 +25,7 @@ bash "Install kernel source" do user 'root' code <<-INSTALL_KERNEL_SOURCE - package="#{kernel_source_package}-#{kernel_source_package_version}" + package="#{kernel_source_package}-$(uname -r)" # try to install kernel source for a specific release version dnf install -y ${package} --releasever #{node['platform_version']}