Initial import: build and boot Everest Linux in QEMU
everest.sh builds Everest's signed packages in an Alpine container, publishes the base, extra and extra-src repositories, installs the system with glacier-bootstrap into an initramfs and boots it in QEMU. The image carries glacier, a toolchain and the repositories, and builds packages from source inside the VM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
f687558b66
43 files changed
+2058
No files matched your search
@@ -0,0 +1,40 @@
|
||||
# toolchain-test.sh: Phases 2 and 4. NOT RUN YET.
|
||||
# Runs INSIDE glacier-alpine_root started with the -b options plus
|
||||
# -v EVEREST/repo:/srv/everest:ro (everest.sh publish; EVEREST = this tree)
|
||||
# -v EVEREST/pkgsrc/everest-repos/etc/glacier/keys:/everest-keys:ro
|
||||
# -v OUTDIR:/out (PHASE4=1: the kept packages, for everest.sh adopt)
|
||||
# Phase 4 needs -fO there (base deps would land in the container's /usr).
|
||||
set -u
|
||||
export PATH=/glacier/sys/links/bin:/app:$PATH LD_LIBRARY_PATH=/glacier/sys/links/lib
|
||||
nc() { sed 's/\x1b\[[0-9;]*m//g'; }
|
||||
syspkg -n >/dev/null
|
||||
adduser -S -D -H _gbuild
|
||||
cp /everest-keys/everest-2026.pub /etc/glacier/keys/
|
||||
cat > /etc/glacier/repos.conf <<'EOR'
|
||||
repos = (
|
||||
{ name = "base"; url = "file:///srv/everest/base"; keys = [ "everest-2026" ]; },
|
||||
{ name = "extra"; url = "file:///srv/everest/extra"; keys = [ "everest-2026" ]; },
|
||||
{ name = "extra-src"; url = "file:///srv/everest/extra-src"; keys = [ "everest-2026" ]; }
|
||||
);
|
||||
EOR
|
||||
chmod 644 /etc/glacier/repos.conf
|
||||
cat > /etc/glacier/glacier.conf <<EOC
|
||||
KEEP_OLD = 1;
|
||||
BUILD_ROOT = [ "musl", "busybox", "linux-headers", "binutils", "gcc", "make" ];
|
||||
BUILD_USER = "_gbuild";
|
||||
JOBS = $(nproc);
|
||||
EOC
|
||||
syspkg -y | nc
|
||||
echo "== PHASE 2: recipes built by Everest's toolchain"
|
||||
printf 'y\n' | syspkg -q -f vim less zstd lua | nc; echo "rc=$?"
|
||||
vim --version | head -2
|
||||
echo hi | zstd | zstd -d
|
||||
lua -v
|
||||
echo paged | TERM=xterm less -F
|
||||
ls /glacier/sys/build/layers
|
||||
if [ "${PHASE4:-}" = 1 ]; then
|
||||
echo "== PHASE 4: the toolchain rebuilt from its recipes"
|
||||
printf '2\n2\n2\n2\ny\n' | syspkg -q -f linux-headers make binutils gcc | nc; echo "rc=$?"
|
||||
cp /glacier/sys/build/packages/extra@*.gpkg /out/
|
||||
ls -l /out
|
||||
fi
|
||||
Reference in new issue
Block a user