0300-planck-svn: THE COMPLETE PLANCK BUILD CASCADE

START HERE

Download and check the source archive, then extract it into a writable folder:

  curl -fLO http://planck-os.org/planck-source.tar.gz
  curl -fLO http://planck-os.org/SHA256SUMS
  sha256sum -c SHA256SUMS
  mkdir planck
  tar -xzf planck-source.tar.gz -C planck
  cd planck

The archive preserves the executable modes. The entry point is the one shell script: it fetches node and its loader
(pinned in seed/pins), checks them with your sha256sum, and hands over to seed/bootstrap.mjs, which makes the
folder's runtime (the wrapper that seals PATH to the folder, busybox, the machine's curl by its path).

From the extracted folder, as your ordinary user:

  ./0000-entry-point.sh
  ./000-playbook.mjs --only x86/64/0300-planck-svn --step 2
  ./000-playbook.mjs --only x86/64/0300-planck-svn --step 3

The entry point needs Linux x86_64, a shell, curl, network access and a writable folder. It downloads and checks
the bootstrap busybox, the folder's musl loader and the pinned Node runtime. You do not install Node, a compiler
or build packages into the surrounding system. There is no sudo or root build step.

The build keeps its dependencies in its folder and uses a sealed tool PATH. It can run within a supplied sandbox,
including nested sandboxes; it does not create a new sandbox boundary itself. The enclosing sandbox must allow
writes in the extracted folder, network downloads and ordinary process execution.

FOLLOW THE CASCADE

  0000-entry-point.sh
      shell + curl -> checked bootstrap programs -> the folder's Node runtime
  000-playbook.mjs --only x86/64/0300-planck-svn --step 2
      the selected leaf's build.mjs calls its width, family and architecture rungs
  kernel-flavors/setup.mjs
      the build tools and the static anvil, bootstrapped inside the folder
  kernel-flavors/linux/setup.mjs
      the Linux source and the tools this rung needs
  kernel-flavors/linux/arch/x86/64/setup.mjs
      the x86-64 Planck toolchain
  kernel-flavors/linux/arch/x86/64/0300-planck-svn/build.mjs
      the kernel, manifest-selected PID 1, busybox, dropbear and svnserve
  kernel-flavors/linux/arch/x86/64/0300-planck-svn/_output/
      boot/bzImage and rootfs/: the resulting box

Each build rung calls the setup it needs. Step 2 is sufficient after the entry point; the publication carries
all the called source rungs and their transitive helper sources under node_modules/. Read any of them directly.
Only the selected Planck leaf is published.

BOOT TEST

Planck can run with KVM acceleration or QEMU software emulation. Use KVM for speed.

Step 3 runs the leaf's boot check through kernel-flavors/linux/planck-box/boot-test.mjs. The runner uses an unprivileged
QEMU process, a disposable copy of the rootfs, 9p folders and user-mode networking. This automated check currently
uses KVM and skips when /dev/kvm is absent; that is a limitation of this check, not a requirement for running Planck.
A pass requires the serial log to contain "sysinit complete". A skipped check is not a tested boot.

The root inside the guest is not root on the build box. Keys are generated during the build; the published
authorized_keys files are placeholders. Supply your own public keys only if you want to log into your built box.

WHAT IS PUBLISHED

This folder contains UTF-8 source text and the empty executable seed placeholder, with no compiled payloads.
The archive is a transport for those same source files. Build outputs, caches and generated runtimes are made
inside your extracted folder. Kernel fragments and patches live in kernel-flavors/linux/planck-box/; PID 1's manifest and the
rootfs skeleton live beside the selected build.mjs. Upstream pins are in their original source modules; the
readable list is kernel-flavors/linux/arch/x86/64/0300-planck-svn/INGREDIENTS.txt.

Pins make the requested inputs explicit and let the build reject different download bytes. The existing kernel,
shell, curl and first downloaded BusyBox remain bootstrap trust assumptions: BusyBox checking its own hash is
not independent authentication. Rootless operation and pinned downloads alone are not a full zero-trust proof.
Pins do not by themselves prove bit-for-bit reproducibility, nor does this publication claim a fresh full build.
