From 229cdb15e3c5da5212f4752b06bd472defbd4c94 Mon Sep 17 00:00:00 2001 From: Helena Greebe Date: Mon, 16 Dec 2024 12:37:47 -0500 Subject: [PATCH] Remove minor version pining --- cookbooks/aws-parallelcluster-platform/files/ami_cleanup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbooks/aws-parallelcluster-platform/files/ami_cleanup.sh b/cookbooks/aws-parallelcluster-platform/files/ami_cleanup.sh index 7d99f7f98..2943b51f3 100644 --- a/cookbooks/aws-parallelcluster-platform/files/ami_cleanup.sh +++ b/cookbooks/aws-parallelcluster-platform/files/ami_cleanup.sh @@ -9,6 +9,11 @@ rm -f /etc/udev/rules.d/70-persistent-net.rules grep -l "Created by cloud-init on instance boot automatically" /etc/sysconfig/network-scripts/ifcfg-* | xargs rm -f rm -rf /var/crash/* +if [ -f /opt/parallelcluster/pin_releasesever ]; then + rm -f /opt/parallelcluster/pin_releasesever + rm -f /etc/yum/vars/releasever +fi + # https://bugs.centos.org/view.php?id=13836#c33128 source /etc/os-release if [ "${ID}${VERSION_ID}" == "centos7" ]; then