Repository navigation
Raspberry Pi OS Image
Findings from issue #922 — how to distribute AutoButler as a flashable image for Raspberry Pi Imager, so a user can flash a microSD card and boot straight into a working instance with no SSH, no setup scripts, no terminal. Implementation landed in PR #923.
Ubuntu 24.04 LTS Server, arm64+raspi — Ubuntu already ships a Pi-ready prebuilt image
(ubuntu-24.04-preinstalled-server-arm64+raspi.img.xz). The build script downloads it, mounts it
via loopback, and chroots in to inject AutoButler. No custom image toolchain
(ubuntu-image/pi-gen/debos) was needed.
Ubuntu's linux-raspi kernel handles both BCM2711 (Pi 4) and BCM2712 (Pi 5). The build produces
two labeled artifacts (autobutler-pi4.img.xz, autobutler-pi5.img.xz) from the same underlying
build, purely for clarity — they'd only need to diverge if a real kernel compatibility issue shows
up on Pi 5.
QEMU emulation on standard x86_64 GitHub Actions runners (docker/setup-qemu-action), not
native arm64 runners — those aren't available on the free/pro GitHub plan. Slower than native, but
free and adequate for an infrequent release build. Triggers on release: published and
workflow_dispatch.
Ubuntu 24.04 Server arm64+raspi compresses to roughly 700MB–1GB as .img.xz; with AutoButler
added, expect ~800MB–1.1GB compressed (~4GB uncompressed, intended for a 16GB+ card). Comfortably
inside GitHub Releases' 2GB per-asset limit, so no separate hosting (R2, S3) was needed.
-
cloud-init (
os/cloud-init/user-data) — works with the stock Ubuntu image via Raspberry Pi Imager's "advanced options," no custom image build required. Fastest to test, but requires internet access on first boot to download the AutoButler binary, and provisioning takes a few minutes with nothing visible to a non-technical user in the meantime. -
Custom image (
os/build-image.sh+.github/workflows/autobutler-pi-image.yml) — AutoButler pre-installed, fully offline first boot, the polished experience for actual product shipping.
Recommended rollout: validate cloud-init on real hardware first (fast, low risk), then run the
custom image build once verified, then update os/pi-imager-catalog.json with the real SHA256
hashes from that build.
os/pi-imager-catalog.json follows the format the Raspberry Pi Foundation uses for their "Other
OS" list. For now it's self-hosted at autobutler.org/pi-imager-catalog.json — a user pastes
that URL into Pi Imager's "Use custom image" and it works with zero approval process. Getting
listed in the official catalogue means a PR against
raspberrypi/rpi-imager with a stable, publicly
hosted, released (not dev-build) image — treated as a later milestone, not blocking.
- AutoButler binary at
/usr/local/bin/autobutler,autobutler.serviceenabled on boot - Default: port 80, data dir
/var/lib/autobutler/data - SSH disabled by default
-
avahi-daemonforautobutler.localmDNS discovery on the LAN -
ufw: allow 80/tcp, deny the rest -
udisks2(or similar) for USB hot-plug automount - First-boot root partition resize to fill the card (standard Pi-image behavior)
None of this has been validated end-to-end on physical Pi hardware yet:
- Full cloud-init first boot on a real Pi 4 and Pi 5
- The build script's loopback-mount-and-chroot step, under actual QEMU emulation (partition naming in particular is the kind of thing that looks right in theory and isn't)
-
autobutler.localmDNS resolution on a real target network - That the GitHub Release asset filename the cloud-init script expects actually matches what the Go release workflow produces