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,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
|
||||
@@ -0,0 +1,4 @@
|
||||
root:x:0:
|
||||
tty:x:5:
|
||||
wheel:x:10:root
|
||||
_gbuild:x:900:
|
||||
@@ -0,0 +1 @@
|
||||
everest
|
||||
Executable
+4
@@ -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
|
||||
Executable
+22
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,2 @@
|
||||
root:x:0:0:root:/root:/bin/sh
|
||||
_gbuild:x:900:900:glacier builds:/var/empty:/usr/sbin/nologin
|
||||
@@ -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
|
||||
@@ -0,0 +1,2 @@
|
||||
root:!:0::::::
|
||||
_gbuild:!:0::::::
|
||||
@@ -0,0 +1 @@
|
||||
/bin/sh
|
||||
@@ -0,0 +1,2 @@
|
||||
untrusted comment: everest-2026 public key
|
||||
RWTALtzjJuR6Ye62fG3Icws8B+D/g/+fZvh6JaY3MMZWEV6/YGJ804zo
|
||||
@@ -0,0 +1,10 @@
|
||||
# Everest's repositories and the keys trusted for each
|
||||
# (REPO_DESIGN.txt section 3). syspkg -y / -f / -u fetch every entry
|
||||
# with a url; base packages installed with syspkg -l need a signature by
|
||||
# a key listed for base. extra-src holds the recipes extra's packages
|
||||
# can also be built from (BUILD_DESIGN.txt).
|
||||
repos = (
|
||||
{ name = "base"; url = "https://pkg.everestlinux.org/base"; keys = [ "everest-2026" ]; },
|
||||
{ name = "extra"; url = "https://pkg.everestlinux.org/extra"; keys = [ "everest-2026" ]; },
|
||||
{ name = "extra-src"; url = "https://pkg.everestlinux.org/extra-src"; keys = [ "everest-2026" ]; }
|
||||
);
|
||||
@@ -0,0 +1,33 @@
|
||||
// /etc/glacier/glacier.conf - glacier configuration (libconfig syntax).
|
||||
// Everest's copy (pkgsrc/glacier-ng), shipped by the glacier-ng package.
|
||||
// Read by gpkg and syspkg. Settings have no built-in defaults: if a
|
||||
// setting an operation needs is missing, that operation refuses to run.
|
||||
|
||||
// How many backups of replaced package versions to keep, per package.
|
||||
// When `-lO` replaces an installed version, the old one is compressed
|
||||
// into <scope>/backup/<repo>/<name>/<name>-<version>.gpkg (+ .sha256)
|
||||
// and the oldest backups beyond this count are deleted. 0 = no backups.
|
||||
KEEP_OLD = 1;
|
||||
|
||||
// Building from source (BUILD_DESIGN.txt). Used only when a package is
|
||||
// built from a NAME-src repository; a build without what it needs
|
||||
// refuses.
|
||||
//
|
||||
// The packages every build root has (from the binary repositories).
|
||||
BUILD_ROOT = [ "musl", "busybox", "linux-headers", "binutils", "gcc", "make" ];
|
||||
//
|
||||
// The unprivileged user syspkg builds as (not root; owns
|
||||
// /glacier/sys/build). gpkg builds as the user running it.
|
||||
BUILD_USER = "_gbuild";
|
||||
//
|
||||
// Traits for every build, "name" on or "-name" off. A user's own
|
||||
// /glacier/usr/<uid>/config/glacier.conf overrides these, and a
|
||||
// per-package file (/etc/glacier/config/NAME.conf, or the user's
|
||||
// config/NAME.conf: TRAITS, CFLAGS, CXXFLAGS, LDFLAGS, CONFIGURE)
|
||||
// overrides both.
|
||||
// TRAITS = [ "-x11" ];
|
||||
//
|
||||
// CFLAGS = "-O2 -pipe";
|
||||
// CXXFLAGS = "-O2 -pipe";
|
||||
// LDFLAGS = "";
|
||||
// JOBS = 4;
|
||||
Reference in new issue
Block a user