No description
- Go 89.9%
- Shell 10.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
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. |
||
| .forgejo/workflows | ||
| .opencode | ||
| cmd | ||
| internal | ||
| overlay/etc | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| Dockerfile.ResOS | ||
| go.mod | ||
| OVERLAY_ARCH_FIX.md | ||
| README.md | ||
| residual-overview.md | ||
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 filesCOPYed 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.