move post-install.d to finalize.d

It looks like I installed the cleanup file in the wrong location.  Moving it
to the correct location and cleaning some more stuff up should allow for a
much smaller image, currently tested at 300M vs 490M.

Change-Id: I9d0a24b0fe59d4f2d38aa88ba47e4400e0476b46
This commit is contained in:
Matthew Thode 2017-01-22 15:53:02 -06:00
parent 48bbbe6268
commit dc8449bf02
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8

View File

@ -7,8 +7,16 @@ set -eu
set -o pipefail set -o pipefail
# make sure system is in a consistant state # make sure system is in a consistant state
echo 'PYTHON_TARGETS="python3_4"' >> /etc/portage/make.conf
eselect python set python3.4
emerge -C -q dev-lang/python:2.7 dev-vcs/git
USE="-build" emerge -q --jobs=2 --update --newuse --deep --with-bdeps=y @world
# rebuild packages that might need it
USE="-build" emerge -q --jobs=2 --usepkg=n @preserved-rebuild
# remove unneeded packages
USE="-build" emerge --verbose=n --depclean USE="-build" emerge --verbose=n --depclean
USE="-build" emerge -v --usepkg=n @preserved-rebuild # rebuild packages that might have somehow depended on the unneeded packages
USE="-build" emerge -q --jobs=2 --usepkg=n @preserved-rebuild
# update config files # update config files
etc-update --automode -5 etc-update --automode -5