Scripts for bootstrapping various programming languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.5 KiB

# 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