Fix optional update of seed_stage.
authorJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Mon, 3 Sep 2012 03:08:30 +0000 (03:08 +0000)
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Mon, 3 Sep 2012 03:08:30 +0000 (03:08 +0000)
targets/stage1/stage1-chroot.sh

index 2c4dacaca5d7830102c069c5438ae5a8d7f3342f..c26bd726abe827a10a510a0779ccaa616b36e619 100644 (file)
@@ -18,18 +18,20 @@ then
        exit 1
 fi
 
+# Update stage3
+if [ -n "${clst_update_seed_cache}" ]; then
+       echo "Updating seed stage..."
+       clst_root_path=/ run_merge "--update --deep --newuse @world"
+else
+       echo "Skipping seed stage update..."
+fi
+
 ## START BUILD
 # First, we drop in a known-good baselayout
 [ -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