1
0
Fork 0

Use --sudoloop for paru install in non-interactive bootstrap

Kaiser bootstrap failed at 'paru -S maplemono-nf-cn' with
'sudo: a terminal is required to read the password'. paru doesn't
need sudo for the build itself (it builds as the user), but it does
call sudo internally for some package operations — and on kaiser
the sudoers config requires a TTY password for those calls.

--sudoloop runs sudo in the background, which avoids the TTY-prompt
issue entirely. The package still builds as the user; only the
internal sudo calls go through the background loop.
This commit is contained in:
Rain 2026-06-21 23:13:42 -04:00
parent 678c61d4fb
commit 20639f31f9

View file

@ -162,7 +162,11 @@ if fc-list 2>/dev/null | grep -qi "Maple Mono NF"; then
else else
{{ if eq .os_family "arch" -}} {{ if eq .os_family "arch" -}}
log "installing maplemono-nf-cn from AUR (via paru)" log "installing maplemono-nf-cn from AUR (via paru)"
paru -S --needed --noconfirm maplemono-nf-cn # paru refuses to run as root, so don't sudo it. --sudoloop runs sudo
# in the background so any internal sudo prompts don't block the
# non-interactive chezmoi run. If the host doesn't have NOPASSWD sudo,
# paru will fail (and the bootstrap will surface the error).
paru --sudoloop -S --needed --noconfirm maplemono-nf-cn
{{ else if eq .os_family "debian" -}} {{ else if eq .os_family "debian" -}}
log "downloading MapleMono-NF.zip from subframe7536/Maple-font $MAPLE_FONT_VERSION" log "downloading MapleMono-NF.zip from subframe7536/Maple-font $MAPLE_FONT_VERSION"
FONT_DIR="$USER_HOME/.local/share/fonts/maple-mono-nf" FONT_DIR="$USER_HOME/.local/share/fonts/maple-mono-nf"