Repository navigation
Stop omarchy-refresh-limine when sudo fails or is cancelled - #20840
ThePrimeagen wants to merge 1 commit into
Conversation
Enable set -e in bin/omarchy-refresh-limine and authorize with `sudo true` before its conditional `sudo test` checks so a failed or cancelled sudo prompt exits immediately instead of being treated as a false test and prompting again for the remaining commands. Guard the `/boot/limine.conf` backup with `if sudo test -f /boot/limine.conf` so refreshing still restores a missing config under set -e.
[Medium impact] The PR appears safe to merge. SummaryStops
No actionable issues found. Tests were inspected, not run. Reviews (1) · Last reviewed commit: "Stop omarchy-refresh-limine when sudo fa..." · Reviewed by Greptile |
|
Codex (GPT-6, high), Opus 5.5 High and muse-wonder via pi, thinking high checked the sudo failure path and the systemd-boot bypass in the source. GitHub CI passed, and #14073 overlaps but conflicts with current quattro. Worker preflight failed, so the fix is waiting on a worker reproduction. |
|
Codex (GPT-6, high) and Opus 5.5 High compared the Limine diffs. #21227 includes this fix and its regression test, and moves sudo authorization ahead of the machine-ID read. Opus 5.5 High flagged that the order can affect the test on a host without a machine ID. Both PRs are open for the maintainer’s decision. GitHub CI passed here, and worker preflight still blocks reproduction. |
Cancelling or failing the sudo password prompt during
omarchy reinstall configsoromarchy refresh liminedoes not stopbin/omarchy-refresh-limine: its first sudo call sits insideif sudo test -f ...and the script lacksset -e, so the failure is treated as a false test,Resetting limine configis printed, and each remainingsudocommand prompts again.Screenshots
Reproduce
sudo -k; omarchy reinstall configsand press Enter.Resetting limine configand prompts again for the next sudo instead of returning to the shell.More cases
Running
omarchy refresh liminedirectlyRelated
sudo test -fchecks inbin/omarchy-refresh-liminewhose exit status was swallowed when sudo failedsudo -vtosudo trueso passwordless sudo does not prompt underverifypw=allomarchy-refresh-liminethat also addsset -e,sudo true, and guards the/boot/limine.confbackup