Skip to content

Update firmware: nothing to update is not a failure - #282

Open
jannyg wants to merge 2 commits into
OrchardLinux:mainfrom
jannyg:firmware-nothing-to-update
Open

jannyg wants to merge 2 commits into
OrchardLinux:mainfrom
jannyg:firmware-nothing-to-update

Conversation

@jannyg

@jannyg jannyg commented Dec 4, 2026

Copy link
Copy Markdown

Disclaimer: This is not my primary field. The change has been mostly vibe coded (with Claude) and tested only on my own device, an iPad Air 2 Cellular (j82).

Fixes #252

What was wrong

Menu → Update → Firmware ended with Failed (2) when there was nothing to update. fwupdmgr update exits with status 2 when it reports "No updatable devices", which is the usual answer on these boards. Upstream's omarchy-update-firmware passed that status on, so the floating terminal treated it as an error.

The change

  • desktop/shell/bin/omarchy-update-firmware: Omarchy A's own copy of upstream's script, identical except at the end: exit status 2 from fwupdmgr update counts as success. Any other failure, and a failed fwupdmgr refresh, still fails as before.
  • tests/test_update_firmware.py: four cases with stubbed fwupdmgr/sudo: nothing to update (0), update fails (1), update works (0), refresh fails (1, update never runs).
  • docs/upstream.md: lists the script under "Upstream's with one change".

Tested

On the iPad Air 2 (j82), with the script installed in /usr/local/bin: Menu → Update → Firmware shows "No updatable devices" and ends with Done. Press any key to close. instead of "Failed (2)". The full test suite gives the same result as main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SLbz23ZoimaemGQ2yfdfhR

@jannyg
jannyg marked this pull request as ready for review December 4, 2026 09:47
jannyg and others added 2 commits December 4, 2026 10:06
fwupdmgr update exits with status 2 when there are no updatable devices,
which is the usual answer on these boards. Upstream's script passed that
on, so the floating terminal ended on "Failed (2)". Omarchy A now carries
its own copy of omarchy-update-firmware that treats status 2 as done;
any other failure still fails.

Tested on an iPad Air 2 (j82): Menu > Update > Firmware ends on Done.

Fixes OrchardLinux#252

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SLbz23ZoimaemGQ2yfdfhR
@jannyg
jannyg force-pushed the firmware-nothing-to-update branch from 9d6ec19 to c754ee4 Compare December 4, 2026 10:06
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.

Update Firmware shows Failed (2) when there is nothing to update

1 participant