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:
lw-everestlinuxandClaude Opus 5.5 committed 2026-10-29 09:33:38 -04:00
commit f687558b66
43 files changed
+2058

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
# /init of the live image (rdinit=/init), packed by `container.sh
# initramfs` as a second cpio after T's: it belongs to no package.
#
# The kernel unpacks the initramfs into rootfs, and pivot_root(2)
# refuses to move rootfs, so builds (gsandbox) could never enter their
# build root. This copies the system into a tmpfs and switch_roots into
# it; switch_root empties rootfs, so the copy costs no RAM after boot.
PATH=/usr/bin:/bin
mkdir -p /.live
if ! mount -t tmpfs -o size=90%,mode=755 live /.live; then
echo "[x] Cannot mount the live tmpfs; booting from the initramfs." >&2
exec /sbin/init
fi
for e in /* /.[!.]*; do
case "$e" in
/.live|/init|'/.[!.]*') ;;
*) cp -a "$e" /.live/ || {
echo "[x] Cannot copy $e to the live tmpfs; booting from the initramfs." >&2
umount /.live; exec /sbin/init
} ;;
esac
done
exec switch_root /.live /sbin/init