mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
The pmtiles CLI + tippecanoe install was duplicated across three places (scripts/install_protomaps.sh, the Debian Live hook, and pi-gen), so a version bump or logic change had to be made in all of them in lockstep. Move it into a single shared, version-guarded, SHA-pinned installer and have all three callers invoke it. - New wrolpi/scripts/install_map_tools.sh: installs pmtiles (per-arch binary, SHA-pinned for amd64 and arm64) and builds tippecanoe (source tarball, arch-independent SHA). Version-guarded, so an image that already baked in the pinned versions makes the on-device run a no-op until a version bumps. - pi-gen 03-run-chroot.sh, the Debian hook, and install_protomaps.sh now just call the shared script. This also adds SHA pinning to the on-device pmtiles path (previously unpinned). Co-authored-by: Claude Opus 4.8 <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
-
Convert a map PBF file to your initial map DB dump:
docker run --rm -v /home/user/district-of-columbia-230111.osm.pbf:/data/region.osm.pbf lrnselfreliance/osm-map-dumper > pi-gen/stage2/04-wrolpi/files/map-db-gis.dumpThe output is already compressed (PostgreSQL custom format with
--compress 9).Verify the dump format is correct:
file pi-gen/stage2/04-wrolpi/files/map-db-gis.dump # Should show: "PostgreSQL custom database dump" -
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.