run apt-get clean before tarballing

This commit is contained in:
parazyd 2017-10-26 21:26:43 +02:00
parent f6104fd604
commit 1aba75a84b
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 4 additions and 0 deletions

View File

@ -126,6 +126,8 @@ apt-get --yes --force-yes install ${base_packages}
apt-get --yes --force-yes purge ${purge_packages}
apt-get --yes --force-yes autoremove
apt-get clean
rm -f /debconf.set
rm -f /etc/ssh/ssh_host_*
rm -f /root/.bash_history
@ -200,6 +202,8 @@ done
apt-get --yes --force-yes upgrade
apt-get --yes --force-yes install ${extra_packages}
apt-get --yes --force-yes autoremove
apt-get clean
EOF
chroot-script -d postunpack || zerr