## START BUILD
setup_pkgmgr
-run_merge "-e system"
+run_merge "-e @system"
setup_pkgmgr
echo "Bringing system up to date using profile specific use flags"
-run_merge -u system
+run_merge -u @system
echo "Emerging packages using stage4 use flags"
setup_pkgmgr(){
# We need to merge our package manager with USE="build" set in case it is
# portage to avoid frying our /etc/portage/make.conf file. Otherwise, we could
- # just let emerge system could merge it.
+ # just let emerge @system could merge it.
# Use --update or portage won't reinstall the same version.
[ -e /etc/portage/make.conf ] && echo 'USE="${USE} build"' >> /etc/portage/make.conf
run_merge --oneshot --nodeps --update sys-apps/portage
# This gives us our list of system packages for the installer
mkdir -p /usr/livecd
### XXX: Andrew says we don't need this anymore
- USE="-* $(cat /var/db/pkg/sys-libs/glibc*/USE)" emerge -eqp system | grep -e '^\[ebuild' | sed -e 's:^\[ebuild .\+\] ::' -e 's: .\+$::' > /usr/livecd/systempkgs.txt
+ USE="-* $(cat /var/db/pkg/sys-libs/glibc*/USE)" emerge -eqp @system | grep -e '^\[ebuild' | sed -e 's:^\[ebuild .\+\] ::' -e 's: .\+$::' > /usr/livecd/systempkgs.txt
# This is my hack to reduce tmpfs usage
cp -r /usr/portage/profiles /usr/livecd