diff --git a/readme.md b/readme.md index 65be9767..d476db73 100644 --- a/readme.md +++ b/readme.md @@ -8,5 +8,5 @@ You probably don't want this repo. * Clone [chef/bento](https://github.com/chef/bento) into same top level folder as this repo. * Run `./bin/copy-to-bento.sh` -* Add `scripts/homestead.sh` to `provisioners.scripts` after `"scripts/hyperv.sh",` in file `ubuntu/ubuntu-16.04-amd64.json` +* Replace `scripts/cleanup.sh` with `scripts/homestead.sh` in file `ubuntu/ubuntu-16.04-amd64.json` * Follow normal [Packer](https://www.packer.io/) practice of building `ubuntu/ubuntu-16.04-amd64.json` diff --git a/scripts/provision.sh b/scripts/provision.sh index 4911fafd..24ec0e48 100644 --- a/scripts/provision.sh +++ b/scripts/provision.sh @@ -422,3 +422,6 @@ chown -R vagrant:vagrant /home/vagrant /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 /sbin/mkswap /var/swap.1 /sbin/swapon /var/swap.1 + +apt-get -y autoremove; +apt-get -y clean;