No description
  • Go 89.9%
  • Shell 10.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lantern fda8333ac5
Some checks failed
commit / docker (push) Failing after 23s
commit / check (push) Successful in 28s
use busybox-static for skeleton applets (no dynamic linker in initramfs)
The skeleton has no /lib/ld-musl-*, so dynamically-linked binaries copied
from the payload die with ENOENT on exec. Add busybox-static to the image
and prefer bin/busybox.static in the initramfs builder, falling back to
bin/busybox if the static package is absent.
2026-10-12 10:52:10 -07:00
.forgejo/workflows ci: split commit workflow - Go on ubuntu-latest, Docker on docker-builder 2026-10-09 18:54:49 -07:00
.opencode update harness configs 2026-10-12 10:28:41 -07:00
cmd use busybox-static for skeleton applets (no dynamic linker in initramfs) 2026-10-12 10:52:10 -07:00
internal use busybox-static for skeleton applets (no dynamic linker in initramfs) 2026-10-12 10:52:10 -07:00
overlay/etc persistence groundwork: metadata capture, Go overlay locator, root layout 2026-10-11 16:36:26 -07:00
.editorconfig inital rip of https://gitlab.alpinelinux.org/alpine/aports/ 2026-07-04 00:19:09 +00:00
.gitattributes inital rip of https://gitlab.alpinelinux.org/alpine/aports/ 2026-07-04 00:19:09 +00:00
.gitignore fix: Hyper-V keyboard support, Limine VM entry, and build CLI improvements 2026-10-11 12:54:06 -07:00
Dockerfile.ResOS use busybox-static for skeleton applets (no dynamic linker in initramfs) 2026-10-12 10:52:10 -07:00
go.mod res-os-builder: Alpine POC pipeline (rootfs, initramfs, GPT image) 2026-10-09 12:43:15 -07:00
OVERLAY_ARCH_FIX.md add overlay architecture documentation and test checklist 2026-10-11 21:22:56 -07:00
README.md rename residual-overlay to res-os-overlay 2026-10-11 19:34:26 -07:00
residual-overview.md fix: harness review findings (residual/os#4) 2026-10-10 07:51:17 -07:00

residual/os

Build tooling for the residual OS. Currently hosts res-os-builder, a container-native tool that turns OCI/container rootfs images into bootable artifacts — fully unprivileged, runnable on standard CI runners.

Layout

  • Dockerfile.ResOS — the default OS image (build context is the repo root).
  • overlay/ — rootfs overwrite files COPYed onto the image.
  • cmd/res-os-builder/ — the Go CLI. See its README for pipeline docs, usage, and size goals.
  • cmd/res-os-overlay/ + internal/overlay/ — the persistence overlay locator baked into the image (no host Go toolchain needed to build it).
  • internal/ — Go internals (build pipeline, exec helpers).

Quick start

# Build the tool
go build -o res-os-builder ./cmd/res-os-builder

# Build the OS image (repo root is the context)
docker build -f Dockerfile.ResOS -t residual:alpine .

# Full pipeline: Dockerfile → rootfs → initramfs → bootable image
./res-os-builder build --from-dockerfile Dockerfile.ResOS --output residual.img

# Boot test (QEMU)
qemu-system-x86_64 -kernel ~/res-rootfs/boot/vmlinuz-lts \
  -initrd ~/res-initramfs.gz -m 1024 -nographic -no-reboot \
  -append "console=ttyS0,115200" 2>&1 | grep RESIDUAL-POC

See residual/.agent#27 for the design.