Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Phase 2 overview — first bootable ONIX image

Phase 2 takes the ONIX package repo artifact from Phase 1 and starts turning it into a bootable disk image.

Phase 2 is a boot proof, not the final kernel ownership story. It intentionally uses the Alpine forge’s virt kernel/initramfs/module payload so we can prove the image layout and systemd-on-musl userspace before spending a full phase on kernel building.

The Phase 2 learning arc is:

exported package repo
  -> host-side moss
  -> root tree
  -> disk image
  -> systemd-boot skeleton
  -> kernel/initramfs payload
  -> first musl systemd userspace payload
  -> first kernel module/kmod payload
  -> first QEMU boot probe

The borrowed payload boundary is explicit:

Phase 2: boot with borrowed Alpine kernel payload
Phase 3: later replace that with ONIX-owned kernel/initramfs/modules
Phase 4: continue now with booted ONIX base userspace

About make phase 2

make phase 2 runs the canonical host-native Phase 2 path:

200 -> 202 -> 203 -> 204 -> 205 -> 206 -> 207 -> 208 -> 209 -> 210 -> 211 -> 213 -> 214 -> 212

It intentionally skips Phase 201 because Phase 201 is the older bridge step that uses the forge VM over SSH. Phase 203 is the normal host-native root-tree assembly path.

Steps

Running:

make phase 2

runs the canonical host-native Phase 2 path.

After this passes, the immediate next implementation lane is Phase 4:

make phase 400

Phase 3 is reserved for later kernel ownership work:

make phase 300