WIP trim.sh: Remove hack @world additions
authorW. Trevor King <wking@tremily.us>
Fri, 22 Aug 2014 10:51:06 +0000 (03:51 -0700)
committerW. Trevor King <wking@tremily.us>
Fri, 22 Aug 2014 10:51:06 +0000 (03:51 -0700)
These should be added to @world by the Dockerfiles that require them
(it's possible that the trim script itself needs sys-apps/findutils,
and we may want to setup BusyBox before removing Bash).

trim.sh

diff --git a/trim.sh b/trim.sh
index 89ddec8139d9215070f1e7bb50e6506bc972cbd5..07cd96d59d45bb9e515a15d88abb00b1d9592c65 100755 (executable)
--- a/trim.sh
+++ b/trim.sh
@@ -46,14 +46,10 @@ trim()
        then
                IMG="${IMG}:${TAG}"
        fi
-       #sys-apps/openrc     (/sbin/rc)
-       #sys-apps/net-tools  (/bin/hostname)
-       #sys-devel/gettext   (/usr/bin/envsubst)
        docker run -t --name "${CONTAINER}" \
                -v "${PWD}/empty-system.py:/tmp/empty-system.py" \
                "${IMAGE}" /bin/bash -c "
                        /tmp/empty-system.py &&
-                       emerge --noreplace app-shells/bash sys-apps/findutils sys-apps/net-tools sys-apps/openrc sys-devel/gettext virtual/package-manager &&
                        emerge -v --with-bdeps=n --depclean &&
                        rm -rf /usr/portage" ||
                die "failed to create ${CONTAINER}"