Skip to content

Commit f5b5e69

Browse files
demartinofratilne
authored andcommitted
Cleanup /var/crash dir before ami creation
Signed-off-by: Francesco De Martino <fdm@amazon.com>
1 parent a4f95d1 commit f5b5e69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

files/default/ami_cleanup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ rm -f /var/lib/cloud/instance
66
rm -rf /etc/ssh/ssh_host_*
77
rm -f /etc/udev/rules.d/70-persistent-net.rules
88
grep -l "Created by cloud-init on instance boot automatically" /etc/sysconfig/network-scripts/ifcfg-* | xargs rm -f
9+
rm -rf /var/crash/*
910

1011
# https://bugs.centos.org/view.php?id=13836#c33128
1112
source /etc/os-release

0 commit comments

Comments
 (0)