We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3219fb commit b53aec2Copy full SHA for b53aec2
cookbooks/aws-parallelcluster-platform/files/ami_cleanup.sh
@@ -9,6 +9,11 @@ rm -f /etc/udev/rules.d/70-persistent-net.rules
9
grep -l "Created by cloud-init on instance boot automatically" /etc/sysconfig/network-scripts/ifcfg-* | xargs rm -f
10
rm -rf /var/crash/*
11
12
+if [ -f /opt/parallelcluster/pin_releasesever ]; then
13
+ rm -f /opt/parallelcluster/pin_releasesever
14
+ rm -f /etc/yum/vars/releasever
15
+fi
16
+
17
# https://bugs.centos.org/view.php?id=13836#c33128
18
source /etc/os-release
19
if [ "${ID}${VERSION_ID}" == "centos7" ]; then
0 commit comments