From e2c10a9fe88c88c5eb2ca10924c7f24a93263918 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Mon, 26 Jul 2021 16:29:13 +0000 Subject: [PATCH] bootstrap_sdk: override seed path after building stage1 When performing a full bootstrap (stage1-4), the stage1 results are currently discarded because of the logic in catalyst_build: the first build stage uses the "seed" and every following stage uses the previous stages results *but* stage1 is built before catalyst_build. So from the point of view of catalyst_build, stage2 is the first one and uses the seed tarball. To make sure stage1 results are used if it was built, set the SEED variable to the latest stage1 location. Signed-off-by: Jeremi Piotrowski --- bootstrap_sdk | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap_sdk b/bootstrap_sdk index f3fb419e12..ea1d11f2ca 100755 --- a/bootstrap_sdk +++ b/bootstrap_sdk @@ -198,6 +198,7 @@ build_stage1() { if [[ "$STAGES" =~ stage1 ]]; then build_stage1 STAGES="${STAGES/stage1/}" + SEED="${TYPE}/stage1-${ARCH}-latest" fi catalyst_build