Skip to content

Keep sudo credentials alive for the whole omarchy-update run - #13618

Closed
AnPod wants to merge 3 commits into
omacom:quattrofrom
AnPod:cursor/fix-update-sudo-keepalive-e0d3
Closed

AnPod wants to merge 3 commits into
omacom:quattrofrom
AnPod:cursor/fix-update-sudo-keepalive-e0d3

Conversation

@AnPod

@AnPod AnPod commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #13404

omarchy update re-prompted for the sudo password across prune, snapshot, keyring, pacman, and migrations.

Change

  • Source omarchy-sudo-keepalive once after the update is confirmed / before privileged steps
  • Disown the keepalive loop so the parent does not wait on sleep 60 at exit
  • Stub keepalive in update shell tests

Test plan

  • bash test/shell.d/update-sequence-test.sh
  • bash test/shell.d/update-lock-test.sh
  • bash test/shell.d/update-disk-space-test.sh

AnPod and others added 3 commits September 27, 2026 22:30
* Clear setgid when hardening Windows VM mount folders

chmod 0700 leaves the setgid bit the container sets on ~/Windows, so
relaunch prep saw mode 2700 and failed closed after the first run.

Co-authored-by: AnPod <AnPod@users.noreply.github.com>

* Cover setgid clearing for Windows VM mount hardening

Add static, chmod-quirk, and prepare_user_mount_sources coverage so
relaunch prep cannot regress back to chmod 0700.

Co-authored-by: AnPod <AnPod@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: AnPod <AnPod@users.noreply.github.com>
Source omarchy-sudo-keepalive after confirm so prune, snapshot, pkgs,
and migrations share one password prompt (omacom#13404).

Co-authored-by: AnPod <AnPod@users.noreply.github.com>
Co-authored-by: AnPod <AnPod@users.noreply.github.com>
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.

omarchy update prompts for sudo password repeatedly instead of caching it

2 participants