From 35ae6817149397673a541042620c847487ebd2d4 Mon Sep 17 00:00:00 2001 From: Helena Greebe Date: Mon, 16 Dec 2024 11:55:35 -0500 Subject: [PATCH] Remove version pinning from update_and_reboot --- .../imagebuilder/update_and_reboot.yaml | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml b/cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml index 0652fc0201..c5e1a43e80 100644 --- a/cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml +++ b/cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml @@ -57,21 +57,6 @@ phases: fi echo ${!OS} - - name: OperatingSystemVersion - action: ExecuteBash - inputs: - commands: - - | - set -v - FILE=/etc/os-release - if [ -e ${!FILE} ]; then - . ${!FILE} - echo "${!VERSION_ID}" - else - echo "The file '${!FILE}' does not exist. Failing build." - exit {{ FailExitCode }} - fi - # Get platform name - name: PlatformName @@ -166,14 +151,6 @@ phases: set -v OS='{{ build.OperatingSystemName.outputs.stdout }}' PLATFORM='{{ build.PlatformName.outputs.stdout }}' - VERSION='{{ build.OperatingSystemVersion.outputs.stdout }}' - if [[ ${!OS} == rhel9 ]] || [[ ${!OS} == rocky9 ]]; then - if [[ ! -f /etc/yum/vars/releasever ]]; then - echo "yes" > /opt/parallelcluster/pin_releasesever - echo ${!VERSION} > /etc/yum/vars/releasever - yum clean all - fi - fi if [[ ${!PLATFORM} == RHEL ]]; then yum -y install jq