Repository navigation
Conversation
jannyg
marked this pull request as ready for review
December 4, 2026 09:47
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLbz23ZoimaemGQ2yfdfhR
jannyg
force-pushed
the
firmware-nothing-to-update
branch
from
December 4, 2026 10:06
9d6ec19 to
c754ee4
Compare
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.
Fixes #252
What was wrong
Menu → Update → Firmware ended with Failed (2) when there was nothing to update.
fwupdmgr updateexits with status 2 when it reports "No updatable devices", which is the usual answer on these boards. Upstream'somarchy-update-firmwarepassed 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 fromfwupdmgr updatecounts as success. Any other failure, and a failedfwupdmgr refresh, still fails as before.tests/test_update_firmware.py: four cases with stubbedfwupdmgr/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 asmain.🤖 Generated with Claude Code
https://claude.ai/code/session_01SLbz23ZoimaemGQ2yfdfhR