Repository navigation
Offer the reboot after a channel switch - #13544
stevederico wants to merge 4 commits into
Conversation
Automated AI review
Outcome:
|
[Medium impact] The PR appears safe to merge; terminal switches regain the reboot offer while other switches keep unattended mode. SummaryThis PR separates approval to start an update from unattended mode.
|
|
This now conflicts with |
7054b10 to
9f04794
Compare
|
Rebased on quattro, tests pass. |
|
Thanks for the rebase. Choosing One heads-up, same as on #13444: |
|
@jandrusk Good catch, added a comment in |
|
This pull request still applies to The classification is unsettled. I read it as a Two other open pull requests fix #13416. #13444, which is older, adds |
|
Compared the PRs for
#13544 is the one to merge: it keeps Suggestion: add |
cb6c400 to
0d7051e
Compare
omarchy-channel-set handed off to omarchy update -y. -y skips the "Ready to update?" question but also marks the update unattended, which replaces the reboot offer with a line of text. A channel switch runs in a terminal someone is watching and usually swaps the kernel, so the reboot choice was lost exactly when it mattered. Add omarchy update --confirmed: it skips only the update question, for a caller that already asked it. The channel switch uses it, so the reboot offer comes back. -y is unchanged. Fixes omacom#13416
docs/update-process.md now lists --confirmed next to -y and says that, unlike -y, it keeps the reboot offer and the conflict handoff interactive. The update-sequence test checks the last omarchy-update-restart call, the reboot phase, so a change that marks only that phase unattended no longer passes.
--confirmed keeps the reboot offer, which waits on gum confirm. A switch run by a script, with passwordless sudo and an open stdin, had nobody to answer it and could wait forever after the packages had already changed. The switch now passes --confirmed only when stdin and stderr are terminals, the same check the package-conflict step uses, and -y otherwise. The channel test runs the switch both ways: without a terminal, and inside one from script.
0d7051e to
9e6277f
Compare
|
Since the last review here, Because of that change, this pull request now conflicts with
The classification is still unsettled at this head. I read it as a Next step: the maintainer decides whether the terminal check is worth keeping on top of #17251. If it is, this branch needs |
|
Closing, since #17251 brings the reboot prompt back after a channel switch. |
After a channel switch, Omarchy says "Run omarchy-system-reboot when ready." instead of offering the reboot the new kernel needs. This brings the offer back. Fixes #13416
Before:
omarchy-channel-sethands off withomarchy update -y, which also marks the update unattended, soconfirm_rebootonly prints the hint.After: new
omarchy update --confirmedskips only "Ready to update?". The channel switch uses it when stdin and stderr are terminals, and-yotherwise, so a scripted switch never waits on the reboot prompt.-yis unchanged. Older destinations (stable 4.0.4) ignore the flag and ask "Ready to update?" once more.How I tested
bash test/shell.d/update-sequence-test.shandbash test/shell.d/channel-test.shpass. Both fail with the fix reverted#13444 adds
--skip-confirmand always passes it, so a scripted switch can hang on the reboot prompt. #13616 drops-yon a terminal and asks "Ready to update?" twice.