mirror of
https://github.com/pithings/unkernel.git
synced 2026-12-02 02:21:30 +08:00
alpine.sh always writes alpine-test.cpio: the image followed by a second cpio archive with kwtest and kwbench, which the kernel unpacks after the first. alpine.cpio, which build.sh bundles, is the same, or with KW_RELEASE=1 the image alone. The choice is in alpine.sh because build.sh is part of the release workflow's cache keys. The release workflow sets KW_RELEASE=1, so the GitHub release bundle, the npm package and the deployed page have no test programs. Its kwtest steps boot the release bundle's kernel with --initrd alpine-test. wasi-node.ts uses alpine-test.cpio, and the headless lowmem scenario boots to the shell instead of running kwtest, since the built page runs a release kernel.