From 5dcccb5d568d4f2ff470f96c2f1810c506f8870a Mon Sep 17 00:00:00 2001 From: mid-kid Date: Tue, 6 Aug 2024 22:18:20 +0200 Subject: [PATCH] Add catalyst instructions --- gentoo-2024.8/catalyst.txt | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 gentoo-2024.8/catalyst.txt diff --git a/gentoo-2024.8/catalyst.txt b/gentoo-2024.8/catalyst.txt new file mode 100644 index 0000000..892003e --- /dev/null +++ b/gentoo-2024.8/catalyst.txt @@ -0,0 +1,36 @@ +# vim:set ft=sh: + +# After finishing a bootstrap, one may want to build a stage3 tarball and +# accompanying ISO image... + +# Addendum: Build a stage3 and installer iso +echo dev-util/catalyst >> /etc/portage/package.accept_keywords +emerge dev-util/catalyst + +ROOT="$PWD/stage" USE=build emerge -1 sys-apps/baselayout +ROOT="$PWD/stage" QUICKPKG_DEFAULT_OPTS=--include-config=y emerge --quickpkg-direct=y -K @system +mkdir stage/etc/portage # catalyst breaks otherwise... +tar cf stage.tar -C stage . +rm -rf stage +xz -9v stage.tar +mkdir -p /var/tmp/catalyst/builds/23.0-default +mv stage.tar.xz /var/tmp/catalyst/builds/23.0-default/stage3-amd64-openrc-latest.tar.xz +wget http://distfiles.gentoo.org/snapshots/squashfs/gentoo-20240801.xz.sqfs +mkdir -p /var/tmp/catalyst/snapshots +mv gentoo-20240801.xz.sqfs /var/tmp/catalyst/snapshots/gentoo-20240801.sqfs + +git clone https://anongit.gentoo.org/git/proj/releng.git +git -C releng checkout 'master@{2024-08-01}' + +sed -e 's|@TIMESTAMP@|20240801|g' \ + -e 's|@TREEISH@|20240801|g' \ + -e 's|@REPO_DIR@|'"$PWD/releng"'|g' \ + -i \ + releng/releases/specs/amd64/stage1-openrc-23.spec \ + releng/releases/specs/amd64/stage3-openrc-23.spec \ + releng/releases/specs/amd64/installcd-stage1.spec \ + releng/releases/specs/amd64/installcd-stage2-minimal.spec +catalyst -f releng/releases/specs/amd64/stage1-openrc-23.spec +catalyst -f releng/releases/specs/amd64/stage3-openrc-23.spec +catalyst -f releng/releases/specs/amd64/installcd-stage1.spec +catalyst -f releng/releases/specs/amd64/installcd-stage2-minimal.spec