From e2192fc7b78faf0598b837d284c358fcd0ba2b1b Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 20 Feb 2017 17:27:25 +0100 Subject: [PATCH] gentoo: do not manually clean /tmp disk-image-create already does that globally after the guest is finalized, see lib/img-functions:finalise_base. Thus, there is no need to remove part of /tmp manually, and no other distro element does that. Change-Id: Id3b72d41fce258af98b31976ef726d57a0a9fae4 --- elements/gentoo/finalise.d/99-cleanup | 5 ----- 1 file changed, 5 deletions(-) diff --git a/elements/gentoo/finalise.d/99-cleanup b/elements/gentoo/finalise.d/99-cleanup index f8f5507a7..2f6575078 100755 --- a/elements/gentoo/finalise.d/99-cleanup +++ b/elements/gentoo/finalise.d/99-cleanup @@ -26,11 +26,6 @@ emerge --verbose=n --depclean emaint all -f eselect news read all -# clean up files that may have been changed during build -shopt -s extglob -rm -Rf /tmp/!(ccache|in_target*|profiledir*) -shopt -u extglob - rm -Rf /root/.ccache/* /usr/src/* /var/cache/edb/dep/* /var/cache/genkernel/* /var/empty/* /var/run/* /var/state/* /var/tmp/* rm -Rf /etc/*- /etc/*.old /etc/ssh/ssh_host_* /root/.*history /root/.lesshst /root/.ssh/known_hosts /root/.viminfo /usr/share/genkernel /usr/lib64/python*/site-packages/gentoolkit/test/eclean/testdistfiles.tar.gz if [[ "${GENTOO_PORTAGE_CLEANUP}" != "False" ]]; then