From 61d6883218831e5914646f5e58070cd6d044bef2 Mon Sep 17 00:00:00 2001 From: Enrico Usai Date: Tue, 12 Dec 2023 11:48:24 +0100 Subject: [PATCH] Install kernel-devel for Rocky Linux from vault Previous releases are moved into a vault area once a new minor release version is available for at least a week. This means we cannot use `--releasever` to install 8.8 version because it is not more available in the repo. On RHEL8 instead all versions of the packages will remain available. With this patch we're downloading this specific package from vault and installing it. ## Tests Manual execution of the new steps. ## References * https://wiki.rockylinux.org/rocky/repo/#notes-on-devel Signed-off-by: Enrico Usai --- .../resources/install_packages/install_packages_rocky8.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 2b8b989310..0ceb9db151 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 @@ -20,11 +20,14 @@ use 'partial/_install_packages_rhel_amazon.rb' action :install_kernel_source do + # 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 bash "Install kernel source" do user 'root' code <<-INSTALL_KERNEL_SOURCE set -e - dnf install -y #{kernel_source_package}-#{kernel_source_package_version} --releasever #{node['platform_version']} + wget https://dl.rockylinux.org/vault/rocky/#{node['platform_version']}/BaseOS/$(uname -m)/os/Packages/k/#{kernel_source_package_version}.rpm + dnf install -y ./#{kernel_source_package_version}.rpm dnf clean all INSTALL_KERNEL_SOURCE end unless on_docker?