Skip to content

Release 1.0.2: let the touch-screen update install a release - #16

Merged
devzeroo merged 3 commits into
mainfrom
claude/project-thread-bbg6ms
Nov 29, 2026
Merged

devzeroo merged 3 commits into
mainfrom
claude/project-thread-bbg6ms

Conversation

@devzeroo

Copy link
Copy Markdown
Owner

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 with install.sh: not on a release tag / fieldimager-update.service: Failed.

Cause: the screen update runs fieldimager-update as root through systemd-run, without SUDO_UID. install.sh ran git -C "$REPO" describe --exact-match --tags 2>/dev/null on the clone owned by locard; git refuses that as "dubious ownership", and the error was hidden. An interactive sudo passes SUDO_UID, which git accepts, so installing from a shell worked (that is how 1.0.0 went in).

  • install.sh reads the clone through repo_git(), which trusts that one directory with git -c safe.directory="$REPO", and no longer hides git's error.
  • fieldimager-update runs 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.md says that 1.0.0 and 1.0.1 themselves need a shell.
  • Version 1.0.2 and a fresh release/manifest.json. Draft until release/manifest.sig is signed on the maintainer workstation.

Checks

  • New tests/unit/test_install_script.py: as root, with no SUDO_* variables, a clone owned by another user makes plain git describe fail with "dubious ownership" (the bug) while repo_git from install.sh finds the tag; and install.sh has no other git -C call.
  • ruff, full pytest: 361 passed; traceability regenerated.
  • To be proven on the Pi: from 1.0.0, Install v1.0.2 on the touch screen, no SSH.

Generated by Claude Code

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
devzeroo marked this pull request as ready for review November 29, 2026 21:33
@devzeroo
devzeroo merged commit 3b4be0d into main Nov 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants