Merge pull request #154 from polvi/usr-rm-from-prod

usr(build-artifacts): remove some things that portage automatically crea...
This commit is contained in:
polvi 2014-01-21 16:47:36 -08:00
commit 20f8ae73a8

View File

@ -33,6 +33,16 @@ setup_prod_image() {
sudo chown root:root "$key_location/update-payload-key.pub.pem"
sudo chmod 644 "$key_location/update-payload-key.pub.pem"
# clean-ups of things we do not need
sudo rm ${root_fs_dir}/etc/csh.env
sudo rm ${root_fs_dir}/etc/gentoo-release
sudo rm -rf ${root_fs_dir}/var/db/pkg
sudo rm ${root_fs_dir}/var/db/Makefile
# clear them out explicitly, so this fails if something else gets dropped
# into xinetd.d
sudo rm ${root_fs_dir}/etc/xinetd.d/rsyncd
sudo rmdir ${root_fs_dir}/etc/xinetd.d
cleanup_mounts "${root_fs_dir}"
trap - EXIT