No description
  • Go 92.7%
  • Shell 7.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lantern 24a31b328e fix: make /init non-blocking and robust; add OCI cache support
/init was hanging on echo to /dev/console or modprobe. Now logs to
kmsg (non-blocking), uses timeout for modprobe, and has a fallback
infinite loop to avoid kernel panic if exec fails.

Also: --from-image now reuses cached OCI image in workdir (use
--no-cache to force re-pull).
2026-10-10 21:27:43 -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 chore: update agent harness configs 2026-09-21 06:15:32 -07:00
cmd/res-os-builder fix: harness review findings (residual/os#4) 2026-10-10 07:51:17 -07:00
image revert: image/ restructure (going with simpler /boot approach) 2026-10-10 12:42:20 -07:00
internal fix: make /init non-blocking and robust; add OCI cache support 2026-10-10 21:27:43 -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 Bring in the ISO build pipeline, trim scripts to what's load-bearing 2026-07-05 01:09:12 +00:00
go.mod res-os-builder: Alpine POC pipeline (rootfs, initramfs, GPT image) 2026-10-09 12:43:15 -07:00
README.md fix: harness review findings (residual/os#4) 2026-10-10 07:51:17 -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

  • cmd/res-os-builder/ — the Go CLI. See its README for pipeline docs, usage, and size goals.
  • internal/ — Go internals (build pipeline, exec helpers).

Quick start

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

# Full pipeline: Dockerfile → rootfs → initramfs → bootable image
./res-os-builder build --from-dockerfile image/Dockerfile.residual --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.