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 857067fe2..f3891b874 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}-$#{node['platform_version']}" + package="#{kernel_source_package}" # try to install kernel source for a specific release version dnf install -y #{kernel_source_package} --releasever #{node['platform_version']}