mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
The pi-gen and Debian Live chroot hooks run `npm install`, which rewrites the tracked app/package-lock.json, then build_app.sh stamps build/.build-stamp from that dirty working tree. On first boot repair.sh runs `git reset --hard` (reverting the lock) *before* it recomputes the stamp, so the baked stamp can never match -- and the device rebuilds the React app every time, the exact OOM-prone step baking the build in (#536) was meant to avoid. Verified against WROLPi-v0.27.2: the shipped image had `M app/package-lock.json`, baked stamp a9c6ef61..., post-reset stamp 2b908c6c... (guaranteed mismatch). Mirror repair.sh in both image hooks: `git reset --hard HEAD` right after npm install and before build_app.sh, so the baked stamp represents committed source and matches what the device recomputes. Only the lock is reverted; build/, node_modules, and the venvs are untracked and survive. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| stage2/04-wrolpi | ||
| build.sh | ||
| config.txt | ||
| README.md | ||
Pi-Gen
This directory exists to facilitate the creation of WROLPI Raspberry Pi OS images.
See https://github.com/RPI-Distro/pi-gen
Generate 64bit Raspberry Pi WROLPi image
-
(Optional) Place any default map assets under
pi-gen/stage2/04-wrolpi/files/if the image should ship with preloaded map data. Maps use PMTiles files served from/media/wrolpi/map/. -
Run the build (or, with a specific git branch)
-
Build release branch (default)
sudo ./build.sh -
Build specific branch
sudo ./build.sh -b master
-
-
The images are now in the
pi-gendirectory.