Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cookbooks/aws-parallelcluster-platform/files/ami_cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading