From 51b8af587e46d4e03b059a51253d9671e27d08e3 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:31 +0100 Subject: feat(doas): smarter sudo shim + paru SudoLoop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The packaged doas-sudo-shim is just 'exec doas "$@"', which means 'sudo -v' (used by paru --sudoloop to keep the auth timestamp fresh during long AUR builds) hits doas, which doesn't implement -v, and the loop dies. Then when the build finally finishes and tries the real install, the cached timestamp has long expired, so we reprompt — and opendoas only allows one attempt before bailing, so a single mistype throws an hour of compilation away. Replace it (per-user, via $HOME/.local/bin precedence) with a shim that translates: -v -> doas true (refresh persist timestamp) -k / -K -> doas -L (clear) -E -H -i -S etc -> dropped (no doas equivalent) rest -> doas "$@" Then enable SudoLoop in paru.conf so the timestamp stays fresh. --- dot_config/paru/paru.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dot_config/paru') diff --git a/dot_config/paru/paru.conf b/dot_config/paru/paru.conf index 57cb11b..6a3632c 100644 --- a/dot_config/paru/paru.conf +++ b/dot_config/paru/paru.conf @@ -14,7 +14,7 @@ Provides DevelSuffixes = -git -cvs -svn -bzr -darcs -always # BottomUp RemoveMake -#SudoLoop +SudoLoop #UseAsk CombinedUpgrade BatchInstall -- cgit v1.3.1