fix(rpi-imager): tag images with hardware devices so Imager lists them#3090
Merged
Conversation
- add a `devices` hardware tag to every entry; without it Imager's exclusive-matching devices (e.g. the Pi 5) silently drop the entry, hiding Anthias entirely once a Pi 5 is selected - hide the 32-bit armhf `pi3` stream from Imager (still built and directly downloadable); steer Pi 3 users to the `pi3-64` Qt6 stream - warn (non-fatal) in the website deploy when an entry lacks `devices` - update tests and README Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the Raspberry Pi Imager JSON generator and related CI/docs so Anthias entries are discoverable in Raspberry Pi Imager 2.x by tagging each OS entry with the appropriate hardware devices tags (and hiding the legacy 32-bit Pi 3 stream from Imager).
Changes:
- Add board→Imager-hardware-tag mapping and emit
devicesfor each generated OS entry; requiredevicesin the generator’s required-field set. - Remove 32-bit
pi3from the Imager-supported board set (while keeping mapping/suffix behavior available if it’s ever re-listed). - Add tests/docs updates and a non-fatal deploy-time warning if release
rpi-imager.jsonlacksdevices.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tools/raspberry_pi_imager/build_pi_imager_json.py | Adds BOARD_DEVICE_TAGS, emits devices, updates supported boards and required fields. |
| tools/raspberry_pi_imager/tests/test_build_pi_imager_json.py | Extends unit tests to cover device tagging and hiding 32-bit Pi 3. |
| tools/raspberry_pi_imager/README.md | Updates supported boards list and explains why 32-bit Pi 3 is not listed in Imager. |
| .github/workflows/deploy-website.yaml | Adds a deploy-time jq warning for missing/empty devices arrays in the release asset. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ce-tags # Conflicts: # tools/raspberry_pi_imager/tests/test_build_pi_imager_json.py
…oy docs - Assert get_board_from_url() is not None before indexing BOARD_DEVICE_TAGS (mypy: invalid index type str | None). - README: only pi2 is surfaced as a maintenance board; the 32-bit pi3 is a maintenance board but is hidden from Imager. - deploy-website: phrase the missing-devices warning neutrally so it doesn't misdiagnose a partially-tagged/regressed feed as a stale release. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Map the board slug to a friendly Raspberry Pi name when building the per-board metadata snippet, so Imager shows 'Anthias (Raspberry Pi 5)' instead of 'Anthias (pi5)'. Falls back to the raw slug for any unmapped board. build_pi_imager_json.py passes the name through, so the consolidated feed picks this up on the next release. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the unverifiable 'most popular in the world' tagline with copy that says what Anthias does, so Imager users can tell what they're flashing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The per-board metadata snippet exists solely to build rpi-imager.json, which lists Raspberry Pi boards only (build_pi_imager_json.py already filters x86/rockpi4 out by board regex + SUPPORTED_BOARDS). Skip generating the snippet for x86 and rockpi4 so the release no longer carries an unused, Pi-worded metadata file for them. Trim the friendly-name map to Pi boards accordingly (raw-slug fallback kept). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Switch the per-board metadata guard from a non-Pi blocklist to an allowlist matching SUPPORTED_BOARDS (pi2, pi3-64, pi4-64, pi5). The 32-bit pi3 is hidden from Imager (superseded by pi3-64), so like x86/rockpi4 its snippet has no consumer and shouldn't be emitted. The pi3 image itself is still built and downloadable from the release. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
5 tasks
This was referenced Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Issues Fixed
Anthias not appearing in Raspberry Pi Imager. The current Imager (2.x) makes you pick a device first, then filters the OS list by each entry's
deviceshardware tags. Anthias's entries carried nodevicesarray, and the Raspberry Pi 5 device usesmatching_type: "exclusive", which drops untagged entries (filterOsListWithHWTagsinrpi-imager/src/imagewriter.cpp). With all 5 Anthias subitems untagged, the parent "Anthias" category filters down to 0 children and disappears entirely when a Pi 5 is selected.Description
deviceshardware tag to every entry the generator emits (pi2→pi2-32bit,pi3-64→pi3-64bit,pi4-64→pi4-64bit,pi5→pi5-64bit), so Imager's device picker no longer hides them.pi3stream from Imager. The image is still built and remains directly downloadable from the release; Pi 3 users are steered to the 64-bit Qt6pi3-64stream.devices(a hard gate would block every deploy until the next release is cut, since the current release asset predates this change).Note
This fixes the generated feed. The official catalog (
os_list_imagingutility_v4.json) currently inlines Anthias's entries as a stale snapshot, so the v4 list stays untagged until Raspberry Pi re-syncs after a new release ships. Thev3catalog pulls our feed live viasubitems_urland will pick this up automatically.Checklist
🤖 Generated with Claude Code