Repository navigation
Release 1.0.2: let the touch-screen update install a release - #16
Merged
Merged
Conversation
The admin screen's "Install vX.Y.Z" checked out the tag and then stopped with
"install.sh: not on a release tag". The update runs install.sh as root from
systemd-run, without SUDO_UID, so git refused the clone owned by the device
user ("dubious ownership") and the error was hidden by 2>/dev/null. An
interactive sudo passes SUDO_UID, which is why installing from a shell worked.
install.sh now reads the clone through repo_git(), which trusts that one
directory with -c safe.directory, and shows git's error when there is no tag.
The update runs the installer of the release it installs, so devices on 1.0.0
or 1.0.1 can move to 1.0.2 from the touch screen. Version 1.0.2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P6BSiEUGgJF5bgotBVU4c5
The signature follows in the next commit, made on the maintainer workstation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P6BSiEUGgJF5bgotBVU4c5
Signed with the release key on the maintainer workstation; `release verify` passes on this commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P6BSiEUGgJF5bgotBVU4c5
devzeroo
marked this pull request as ready for review
November 29, 2026 21:33
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.
Requested by Daniel · project thread
What
On the Pi, Admin → Software update → Install v1.0.1 checked out the tag (
HEAD is now at 2277a50) and then stopped withinstall.sh: not on a release tag/fieldimager-update.service: Failed.Cause: the screen update runs
fieldimager-updateas root throughsystemd-run, withoutSUDO_UID.install.shrangit -C "$REPO" describe --exact-match --tags 2>/dev/nullon the clone owned bylocard; git refuses that as "dubious ownership", and the error was hidden. An interactivesudopassesSUDO_UID, which git accepts, so installing from a shell worked (that is how 1.0.0 went in).install.shreads the clone throughrepo_git(), which trusts that one directory withgit -c safe.directory="$REPO", and no longer hides git's error.fieldimager-updateruns the installer of the release it checks out, so a device on 1.0.0 or 1.0.1 can go to 1.0.2 from the touch screen.docs/RELEASING.mdsays that 1.0.0 and 1.0.1 themselves need a shell.release/manifest.json. Draft untilrelease/manifest.sigis signed on the maintainer workstation.Checks
tests/unit/test_install_script.py: as root, with noSUDO_*variables, a clone owned by another user makes plaingit describefail with "dubious ownership" (the bug) whilerepo_gitfrominstall.shfinds the tag; andinstall.shhas no othergit -Ccall.ruff, fullpytest: 361 passed; traceability regenerated.Generated by Claude Code