Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
Revert "Improve cleanup.sh script"
Browse files Browse the repository at this point in the history
This reverts commit 992b08c.
  • Loading branch information
Steven Rombauts committed Nov 26, 2015
1 parent a1e5be4 commit dea134c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packer/scripts/cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
echo "cleaning up apt"
apt-get -y autoremove
apt-get -y clean
apt-get -y autoclean all
rm -rf /var/lib/apt/lists/*

echo "cleaning up guest additions"
rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.?
Expand All @@ -16,8 +14,5 @@ mkdir /etc/udev/rules.d/70-persistent-net.rules
rm -rf /dev/.udev/
rm /lib/udev/rules.d/75-persistent-net-generator.rules

echo "removing unneeded source files"
rm -rf /usr/src/*

echo "remove documentation"
rm -rf /usr/share/doc/* /usr/share/lintian/* /usr/share/linda/* /var/cache/man/*
echo "removing headers"
rm -rf /usr/src/linux-headers*

0 comments on commit dea134c

Please sign in to comment.