From 28714144022b87df2bf53d91fbdac46cb756092e Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 24 Nov 2018 13:15:12 +0100 Subject: [PATCH] Update base stage3 before build launch. --- entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 98f0221..ede2cb2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,6 +5,14 @@ die() { exit 1 } +# Get latest stage3 tag +STAGE3_TAG=$(curl -s \ + http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.txt \ + | grep -v "^#" | cut -d ' ' -f 1) + +# Download latest stable stage3 build +wget -O /var/lib/catalyst/store/builds/stage3-amd64-latest.tar.xz \ + http://distfiles.gentoo.org/releases/amd64/autobuilds/${STAGE3_TAG} # Download latest portage snapshot wget -O /var/lib/catalyst/store/snapshots/portage-latest.tar.bz2 \