From 8f72e0955d0575c80de25f72452c4ef4f1f856cf Mon Sep 17 00:00:00 2001 From: Helena Greebe Date: Sun, 15 Dec 2024 14:23:33 -0500 Subject: [PATCH] Fix rocky9 --- cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml b/cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml index e9d90d6142..ae0cf10b66 100644 --- a/cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml +++ b/cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml @@ -167,7 +167,7 @@ phases: OS='{{ build.OperatingSystemName.outputs.stdout }}' PLATFORM='{{ build.PlatformName.outputs.stdout }}' VERSION='{{ build.OperatingSystemVersion.outputs.stdout }}' - if [[ ${!OS} == rhel9 ]]; then + if [[ ${!OS} == rhel9 ]] || [[ ${!OS} == rocky9 ]]; then echo ${!VERSION} > /etc/yum/vars/releasever yum clean all fi