{"id":47675497,"url":"https://github.com/arcboxlabs/boot-assets","last_synced_at":"2026-04-02T13:28:54.480Z","repository":{"id":339255207,"uuid":"1129611023","full_name":"arcboxlabs/boot-assets","owner":"arcboxlabs","description":"EROFS rootfs and release pipeline for ArcBox VM runtime","archived":false,"fork":false,"pushed_at":"2026-03-25T16:08:50.000Z","size":8182,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-26T13:59:05.418Z","etag":null,"topics":["alpine","arm64","boot","erofs","linux","virtio"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arcboxlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-07T10:31:44.000Z","updated_at":"2026-03-25T11:19:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/arcboxlabs/boot-assets","commit_stats":null,"previous_names":["arcbox-labs/boot-assets","arcboxlabs/boot-assets"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/arcboxlabs/boot-assets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcboxlabs%2Fboot-assets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcboxlabs%2Fboot-assets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcboxlabs%2Fboot-assets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcboxlabs%2Fboot-assets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arcboxlabs","download_url":"https://codeload.github.com/arcboxlabs/boot-assets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcboxlabs%2Fboot-assets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine","arm64","boot","erofs","linux","virtio"],"created_at":"2026-04-02T13:28:54.087Z","updated_at":"2026-04-02T13:28:54.472Z","avatar_url":"https://github.com/arcboxlabs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ArcBox Boot Assets\n\n`boot-assets` is the single source of truth for ArcBox VM boot artifacts.\n\nEach release publishes per-architecture tarballs plus a unified multi-target manifest:\n\n1. `boot-assets-{arch}-v{version}.tar.gz`\n2. `boot-assets-{arch}-v{version}.tar.gz.sha256`\n3. `manifest.json` (multi-target)\n\nThe tarball contains:\n\n1. `kernel` — pre-built Linux kernel from [`arcboxlabs/kernel`](https://github.com/arcboxlabs/kernel) (all drivers built-in, `CONFIG_MODULES=n`)\n2. `rootfs.erofs` — minimal read-only rootfs (busybox + mkfs.btrfs + iptables-legacy + ebtables + ethtool + socat + CA certs)\n3. `manifest.json` — per-arch manifest (merged into unified manifest at release time)\n\nNo agent binary in the boot tarball, and no initramfs.\nGuest runtime binaries are published separately as manifest-listed host-side\nbinaries and are shared into the VM via VirtioFS from the host.\n\n## Manifest Schema\n\n`schema_version` equals the major component of `asset_version` (e.g. `0.2.0` → `0`, `1.0.0` → `1`).\n\nThe manifest supports multiple target architectures and host-side binaries:\n\n```jsonc\n{\n  \"schema_version\": 0,\n  \"asset_version\": \"0.2.0\",\n  \"built_at\": \"2026-03-03T12:00:00Z\",\n  \"source_repo\": \"arcboxlabs/kernel\",\n  \"source_ref\": \"v0.1.0\",\n  \"source_sha\": \"abc123\",\n  \"targets\": {\n    \"arm64\": {\n      \"kernel\": { \"path\": \"arm64/kernel\", \"sha256\": \"...\", \"version\": \"6.12.8\" },\n      \"rootfs\": { \"path\": \"arm64/rootfs.erofs\", \"sha256\": \"...\" },\n      \"kernel_cmdline\": \"console=hvc0 root=/dev/vda ro rootfstype=erofs earlycon\"\n    },\n    \"x86_64\": {\n      \"kernel\": { \"path\": \"x86_64/kernel\", \"sha256\": \"...\", \"version\": \"6.12.8\" },\n      \"rootfs\": { \"path\": \"x86_64/rootfs.erofs\", \"sha256\": \"...\" },\n      \"kernel_cmdline\": \"console=ttyS0 root=/dev/vda ro rootfstype=erofs earlycon\"\n    }\n  },\n  \"binaries\": [\n    {\n      \"name\": \"dockerd\",\n      \"version\": \"27.5.1\",\n      \"targets\": {\n        \"arm64\":  { \"path\": \"bin/arm64/dockerd\",  \"sha256\": \"...\" },\n        \"x86_64\": { \"path\": \"bin/x86_64/dockerd\", \"sha256\": \"...\" }\n      }\n    }\n  ]\n}\n```\n\n`boot-assets sync-binaries` supports both tarball extraction and direct binary\ndownloads. Use `format = \"tgz\"` plus `extract = \"path/in/archive\"` for archive\nsources and `format = \"binary\"` for direct executable URLs.\n\n## CLI Usage\n\nThe tool is built with Rust. Install with `cargo build --release`.\n\n```bash\n# Build EROFS rootfs only\nboot-assets build-rootfs --output build/rootfs.erofs --arch arm64\n\n# Full release build (single arch)\nboot-assets build-release \\\n  --version 0.2.0 \\\n  --kernel build/kernel-arm64 \\\n  --arch arm64\n\n# With pre-built rootfs\nboot-assets build-release \\\n  --version 0.2.0 \\\n  --kernel build/kernel-arm64 \\\n  --rootfs build/rootfs.erofs \\\n  --arch arm64 \\\n  --source-repo arcboxlabs/kernel \\\n  --source-ref v0.1.0\n\n# Merge per-arch manifests into unified multi-target manifest\nboot-assets merge-manifest dist/arm64/manifest.json dist/x86_64/manifest.json \\\n  --output dist/manifest.json\n```\n\n## Build And Release\n\n### CI release workflow\n\nWorkflow file: `.github/workflows/release.yml`\n\nTrigger:\n\n1. Push tag: `v*`\n2. Manual dispatch with explicit version\n\nPipeline stages:\n\n1. **Download kernel** — downloads pre-built ARM64/x86_64 kernels from [`arcboxlabs/kernel`](https://github.com/arcboxlabs/kernel) release\n2. **Build EROFS rootfs** — creates minimal rootfs from Alpine static binaries (per-arch)\n3. **Assemble** — packages kernel + rootfs.erofs + manifest.json into tarball (per-arch)\n4. **Merge** — merges per-arch manifests into unified multi-target manifest\n5. **Release** — publishes to GitHub Releases and Cloudflare R2\n\n### Local build\n\nPrerequisites:\n\n1. Rust toolchain\n2. Docker (for extracting static Alpine binaries and building the EROFS image)\n3. Kernel binary from [`arcboxlabs/kernel`](https://github.com/arcboxlabs/kernel) release\n\n```bash\n# Build the CLI\ncargo build --release\n\n# Download kernel from arcboxlabs/kernel release\ngh release download v0.1.0 --repo arcboxlabs/kernel --pattern \"kernel-arm64\" --dir build/\n\n# Full release build\n./target/release/boot-assets build-release \\\n  --version 0.2.0 \\\n  --kernel build/kernel-arm64 \\\n  --arch arm64\n```\n\nOutput files are written to `dist/`.\n\n## EROFS Rootfs Contents\n\n```\n/ (EROFS, read-only, LZ4HC compressed)\n├── bin/\n│   └── busybox          # Static busybox (+ symlinks: sh, mount, mkdir, ...)\n├── sbin/\n│   ├── init             # Trampoline: mount /proc /sys /dev → mount VirtioFS → exec agent\n│   ├── mkfs.btrfs       # Btrfs formatter (first-boot data disk)\n│   ├── iptables         # iptables-legacy (Docker bridge networking)\n│   ├── ebtables         # bridge filter utility used by K3s\n│   ├── ethtool          # network utility used by K3s\n│   ├── socat            # stream relay utility used by K3s\n│   └── (symlinks)       # iptables-save, iptables-restore, ip6tables, ...\n├── lib/\n│   └── *.so*            # musl loader + shared libs for packaged host utilities\n├── cacerts/\n│   └── ca-certificates.crt\n└── (mount points)       # tmp/ run/ proc/ sys/ dev/ mnt/ arcbox/ Users/ etc/ var/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcboxlabs%2Fboot-assets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farcboxlabs%2Fboot-assets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcboxlabs%2Fboot-assets/lists"}