From 0393146a3894326a1dbf8642e42902762eb987d9 Mon Sep 17 00:00:00 2001 From: "Jorge Manuel B. S. Vicetto (jmbsvicetto)" Date: Mon, 3 Sep 2012 03:08:30 +0000 Subject: Fix optional update of seed_stage. --- targets/stage1/stage1-chroot.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/targets/stage1/stage1-chroot.sh b/targets/stage1/stage1-chroot.sh index 2c4dacac..c26bd726 100644 --- a/targets/stage1/stage1-chroot.sh +++ b/targets/stage1/stage1-chroot.sh @@ -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 -- cgit v1.2.3-65-gdbad