Add initial support to update the seed stage on stage1 - bug 397505.
authorJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Wed, 29 Aug 2012 02:46:40 +0000 (02:46 +0000)
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Wed, 29 Aug 2012 02:46:40 +0000 (02:46 +0000)
targets/stage1/stage1-chroot.sh

index af50a1c5ccc12ec8834cdff72a1f4bad2754ff4d..00f390d80b51401c1929a8643ca7c471c717e457 100644 (file)
@@ -23,6 +23,13 @@ fi
 [ -e /etc/portage/make.conf ] && \
        echo 'USE="${USE} -build"' >> /etc/portage/make.conf
 run_merge "--oneshot --nodeps sys-apps/baselayout"
+
+# Update stage3
+UPDATE_SEED_STAGE="yes"
+if [ -n ${UPDATE_SEED_STAGE} ]; then
+       echo "Updating seed stage..."
+       clst_root_path=/ run_merge "--update --deep --newuse @world"
+fi
 sed -i '/USE="${USE} -build"/d' /etc/portage/make.conf
 
 # Next, we install the package manager