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

+8
View File
@@ -0,0 +1,8 @@
# Members of wheel may run anything as root, with their password.
permit :wheel
# ...and create their own glacier directory (/glacier/usr/<uid>)
# without one. gstore -n with no UID acts only for the caller. doas
# matches cmd against what was typed, so both spellings are listed; a
# bare name is looked up on doas's own root-only PATH.
permit nopass :wheel as root cmd gstore args -n
permit nopass :wheel as root cmd /usr/bin/gstore args -n
+4
View File
@@ -0,0 +1,4 @@
root:x:0:
tty:x:5:
wheel:x:10:root
_gbuild:x:900:
+1
View File
@@ -0,0 +1 @@
everest
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
# /etc/init.d/rcK - run by init at shutdown (::shutdown in /etc/inittab).
sync
umount -a -r 2>/dev/null
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
# /etc/init.d/rcS - run once by init at boot (::sysinit in /etc/inittab).
# Mounts only what isn't mounted yet, so it works the same whether the
# root filesystem is an initramfs or a real disk.
mnt() { # mnt TYPE DIR [OPTIONS]
mountpoint -q "$2" && return 0
mkdir -p "$2"
mount -t "$1" ${3:+-o "$3"} "$1" "$2"
}
mnt proc /proc nosuid,nodev,noexec
mnt sysfs /sys nosuid,nodev,noexec
mnt devtmpfs /dev nosuid,mode=0755
mnt devpts /dev/pts nosuid,noexec,gid=5,mode=0620
mnt tmpfs /dev/shm nosuid,nodev,mode=1777
mnt tmpfs /run nosuid,nodev,mode=0755
# A real root filesystem is usually mounted read-only by the kernel.
mount -o remount,rw / 2>/dev/null
[ -r /etc/hostname ] && hostname -F /etc/hostname
+13
View File
@@ -0,0 +1,13 @@
# /etc/inittab - busybox init. Format: <tty>::<action>:<command>
# An empty tty field means the console.
# Early boot: mount the virtual filesystems, set the hostname.
::sysinit:/etc/init.d/rcS
# A root shell on the console, once Enter is pressed. root's password is
# locked (see /etc/shadow), so this is the only way in until one is set.
::askfirst:-/bin/sh
::ctrlaltdel:/sbin/reboot
::shutdown:/etc/init.d/rcK
::restart:/sbin/init
+2
View File
@@ -0,0 +1,2 @@
root:x:0:0:root:/root:/bin/sh
_gbuild:x:900:900:glacier builds:/var/empty:/usr/sbin/nologin
+14
View File
@@ -0,0 +1,14 @@
# /etc/profile - login shell setup.
#
# PATH: the user's own glacier packages, then non-base system packages
# (/glacier/sys/links), then the base system (/usr/bin; /bin and /sbin
# are links to it). The glacier dirs are listed whether or not they
# exist yet: they appear after `syspkg -n` / `gstore -n`, and a missing
# PATH entry is harmless.
GLACIER_LINKS="/glacier/usr/$(id -u)/links"
GLACIER_SYS_LINKS="/glacier/sys/links"
export PATH="$GLACIER_LINKS/bin:$GLACIER_SYS_LINKS/bin:/usr/bin"
export LD_LIBRARY_PATH="$GLACIER_LINKS/lib:$GLACIER_SYS_LINKS/lib"
unset GLACIER_LINKS GLACIER_SYS_LINKS
export PS1='\h:\w\$ '
umask 022
+2
View File
@@ -0,0 +1,2 @@
root:!:0::::::
_gbuild:!:0::::::
+1
View File
@@ -0,0 +1 @@
/bin/sh