From 12d59f88e0a3fdf3a3fa448abb3751add014b1b8 Mon Sep 17 00:00:00 2001 From: Thilo Fromm Date: Thu, 4 Mar 2021 18:59:13 +0100 Subject: [PATCH] build_library/catalyst_sdk.sh: save snapshot of coreos-overlay This change to stage 4 of the SDK bootstrap process will keep a snapshot of coreos-overlay in the SDK tarball. This snapshot can be used in future SDK bootstraps' stage1 to ensure a clean stage 1 output without any package updates. Signed-off-by: Thilo Fromm --- build_library/catalyst_sdk.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build_library/catalyst_sdk.sh b/build_library/catalyst_sdk.sh index edc739ab98..f194333a6a 100644 --- a/build_library/catalyst_sdk.sh +++ b/build_library/catalyst_sdk.sh @@ -20,3 +20,11 @@ for cross_chost in $(get_chost_list); do PKGDIR="$(portageq envvar PKGDIR)/crossdev" \ install_cross_rust "${cross_chost}" ${clst_myemergeopts} done + +echo "Saving snapshot of coreos-overlay repo for future SDK bootstraps" +# Copy coreos-overlay, which is in /var/gentoo/repos/local/, into a +# local directory. /var/gentoo/repos/local/ is removed before archiving +# and we want to keep a snapshot. This snapshot is used - alongside +# /var/gentoo/repos/gentoo - by stage 1 of future bootstraps. +mkdir -p /var/gentoo/repos/coreos-overlay +cp -R /var/gentoo/repos/local/* /var/gentoo/repos/coreos-overlay