Remove downloaded packages after image creation

This commit is contained in:
Bob Mottram 2016-08-23 14:52:44 +01:00
parent 2d0a8c33bb
commit 8b5493c04e
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 3 additions and 0 deletions

View File

@ -931,6 +931,9 @@ initialise_mesh
configure_wifi configure_wifi
configure_user_interface configure_user_interface
# remove downloaded packages
chroot $rootdir apt-get clean
cd / cd /
echo $"info: killing leftover processes in chroot" echo $"info: killing leftover processes in chroot"
fuser -mvk $rootdir/. || true fuser -mvk $rootdir/. || true