Raspberry Pi Zero 2 W image builder; Power off/Restart buttons

pi/build-image.sh makes a ready-to-flash card: Raspberry Pi OS Lite 2026-10-06
+ the Gyre software as a service on http://gyre.local (port 80), first-boot
setup through cloud-init (user, SSH key, Wi-Fi, packages from the card), USB
host mode on the Zero 2's data port. No root: mtools for the boot partition,
debugfs for the root filesystem. Wi-Fi and credentials stay in the work dir.

Web page: Power off / Restart links when GYRE_POWER_BUTTONS=1 (set by the Pi
service); thumbnails keyed by file contents so pre-made ones ship on the card;
stale thumbnails pruned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ckochandClaude Opus 5.5 committed 2026-11-01 21:10:06 -05:00
1 parent 97ebae93b2
commit 8a377af116
9 files changed
+336 -6

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
# Copy to <work dir>/settings.env (default ~/Documents/gyre-pi/settings.env) and fill in.
# It holds your Wi-Fi password, so keep it out of git.
SSID="your network" # 2.4 GHz: the Pi Zero 2 W has no 5 GHz radio
WIFI_PASSWORD="your password"
COUNTRY=US # Wi-Fi country code
HOSTNAME=gyre # the page is then at http://gyre.local
TIMEZONE=America/New_York
SSH_PUBKEY=~/.ssh/gyre_pi.pub # made for you if missing
# The 'gyre' user's console/sudo password: leave empty to generate one (saved in CREDENTIALS.txt)
USER_PASSWORD=""