Boot a signed command-line userland and exercise its tools in Vinix
@@ -41,8 +41,8 @@ Both desktop builders then remove `libOSMesa.so*`, `libGLU.so*` and `libxatracke
4141| `libcrypto3`, `libssl3` | The `openssl` port builds both shared libraries from one source. |
4242| `ca-certificates-bundle` | The native bundle provides `/etc/ssl/cert.pem`, the concatenated CA store and the individual Mozilla authorities. Check for consumers of the old `/etc/ssl1.1` aliases when auditing the final root. |
4343| `busybox`, `busybox-binsh` | The BusyBox port owns `/bin/sh`. Expand the bootstrap applet configuration to cover the shell commands in both release images. Check the applet paths against the other packages during a signed install. |
44-| `ssl_client` | Build `/usr/bin/ssl_client` against OpenSSL and test its certificate checks. Exercise BusyBox wget with the helper and the release applet configuration. |
45-| `musl-utils`, `scanelf` | The proposed `musl-utils` output comprises `getconf`, `getent`, `iconv`, `ldconfig` and the architecture-specific musl `ldd` wrapper. Its `ldconfig` script uses `scanelf` from pax-utils. Check `ldd` in the arm64 desktop image since the target toolchain invokes it. |
44+| `ssl_client` | The `ssl-client` port builds `/usr/bin/ssl_client` against OpenSSL. Its x86_64 fixture verifies a trusted peer and rejects an unrelated CA and a wrong hostname. BusyBox wget still needs a guest test with the release applet configuration. |
45+| `musl-utils`, `scanelf` | The source-built `musl-utils` supplies `getconf`, `getent`, `iconv`, `ldconfig` and a target-specific musl `ldd` wrapper. Its `ldconfig` script uses the packaged `scanelf` from pax-utils. Both ports passed x86_64 recipe checks and installed together in the signed userland root. Verify the arm64 toolchain against its own loader. |
4646| `alpine-release` | `vinix-release` supplies the OS identity and banners. The image builder supplies the image-specific `/etc/vinix-release` tag. |
4747| `alpine-baselayout`, `alpine-baselayout-data` | Map the release's final paths, including account databases, shell profiles, network service tables and runtime directory links. Keep the Vinix account stage's handling of existing databases and verify edited configuration survives an upgrade. |
4848| `apk-tools`, `alpine-keys` | Build target vpac and its OpenPGP dependencies. Update the Vinix `pkg` frontend, package persistence and release image checks that currently use APK paths. Install the release public key through a trusted image and verify on both architectures that vpac rejects a tampered package. |
@@ -63,3 +63,20 @@ To boot the packages, pass an existing Vinix amd64 BIOS ISO to the diskless test
6363v -o "$work/boot" tests/busybox/boot.v
6464"$work/boot" "$work/sdk/root" "$vinix_iso" "$work/guest" --musl
6565```
66+
67+### Boot the packaged command-line userland
68+
69+Publish the following 27 target packages to a fresh feed. The November 29 run used BusyBox `1.38.0-4` and Zsh `5.9.2-2`. Select one archive per name. Run from the ports checkout on the worker with `bsdtar`, `xorriso`, `timeout` and QEMU on PATH.
70+
71+```sh
72+set -- musl linux-headers busybox vinix-release ca-certificates-bundle zlib bzip2 \
73+ brotli zstd xz expat libffi libcap libuuid ncurses pkgconf vim make openssl \
74+ pcre2 gmp libpng nghttp2 c-ares zsh scanelf musl-utils
75+"$work/feed" install "$work/client-keys" "$userland_feed" x86_64 "$work/userland" --fakeroot "$@"
76+v -o "$work/audit" tests/installed-root.v
77+"$work/audit" x86_64 "$work/userland"
78+v -o "$work/boot" tests/busybox/boot.v
79+"$work/boot" "$work/userland/root" "$vinix_iso" "$work/userland-guest" --userland
80+```
81+
82+The x86_64 audit verified 27 signed package records, 9,583 owned files and links, and 110 target ELFs. Inside Vinix, the fixture loaded Zsh modules, edited a file with Vim, ran a Makefile, round-tripped compressed files, resolved pkg-config modules, parsed XML and verified the packaged ISRG root through OpenSSL. The serial log ends with `VPAC USERLAND GUEST PASS`. The worker keeps it under `musl-busybox-CqkBEA/foundation/userland-guest-01/serial.log` (SHA-256 `237592ae4c71ca99438e4fba943472c44c6890f60495a43204202c7ba2eb0837`). Boot harness revision `0a0ab0a` supports this run.
@@ -0,0 +1,49 @@
1+#!/bin/sh
2+# Invoked by the packaged BusyBox init inside a disposable Vinix guest.
3+set -eu
4+export PATH=/bin:/usr/bin:/sbin:/usr/sbin
5+export HOME=/tmp TERM=xterm-256color LC_ALL=C
6+
7+finish() {
8+ result=$?
9+ if [ "$result" -ne 0 ]; then
10+ echo "VPAC USERLAND GUEST FAIL at $phase (status $result)"
11+ fi
12+ /sbin/poweroff -f
13+}
14+phase=identity
15+trap finish EXIT
16+mkdir -p /tmp
17+cd /tmp
18+test "$(/bin/uname -o)" = Vinix
19+grep -q '^ID=vinix$' /etc/os-release
20+
21+phase=shell
22+/bin/zsh -fc 'zmodload zsh/zle && zmodload zsh/complete && zmodload zsh/terminfo && zmodload zsh/pcre && zmodload zsh/cap && setopt RE_MATCH_PCRE && [[ alphabet =~ "^(?=alpha)alpha" ]]'
23+
24+phase=editor
25+printf '%s\n' 'before' >note
26+vim -Nu NONE -i NONE -n -es note -c 'call setline(1, "Vinix edit")' -c 'wq'
27+test "$(cat note)" = 'Vinix edit'
28+
29+phase=make
30+printf 'all:\n\t@printf "built in Vinix\\n" > result\n' >Makefile
31+make -f Makefile
32+test "$(cat result)" = 'built in Vinix'
33+
34+phase=compression
35+bzip2 -kc note >note.bz2
36+xz -c note >note.xz
37+test "$(bzip2 -dc note.bz2)" = 'Vinix edit'
38+test "$(xz -dc note.xz)" = 'Vinix edit'
39+
40+phase=libraries
41+pkg-config --exists zlib libpng libpcre2-8
42+printf '<vinix/>\n' >release.xml
43+xmlwf release.xml
44+
45+phase=certificates
46+printf abc >abc
47+openssl dgst -sha256 abc | grep -q ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
48+openssl verify -no_check_time -CAfile /etc/ssl/cert.pem /usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt
49+echo 'VPAC USERLAND GUEST PASS'