diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-26 19:04:00 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-26 19:04:00 -0500 |
| commit | 376fea3c81b66df281ffb73219f5a3c82f679fea (patch) | |
| tree | 3b3035df21dc976f9613e6fb42f6c07b4e4e8e5f | |
| parent | 61f96b996562e5b36a309bacd098b9b135cfc6af (diff) | |
| download | archsetup-376fea3c81b66df281ffb73219f5a3c82f679fea.tar.gz archsetup-376fea3c81b66df281ffb73219f5a3c82f679fea.zip | |
fix(archsetup): stop yay hanging on its diff prompt during unattended installs
A VM test run hung for 80 minutes and timed out. yay was blocking on "Diffs to show?" for an AUR package whose build files already existed, waiting for input that never comes in a headless install. --noconfirm doesn't cover yay's diff and clean menus.
I added --answerdiff None --answerclean None to the yay call in aur_install: show no diffs, don't clean, proceed. This is the right answer for an unattended run and matches the --noconfirm posture already in place. It likely explains the recurring 90-minute VM-test timeouts that read like slow AUR builds.
| -rwxr-xr-x | archsetup | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -595,7 +595,11 @@ pacman_install() { # AUR Install aur_install() { - retry_install "$1" "AUR" "sudo -u \"$username\" yay -S --noconfirm \"$1\"" + # --answerdiff/--answerclean None: yay's diff and clean menus aren't covered + # by --noconfirm, so on a headless install they block forever waiting for + # input (seen hanging on a "Diffs to show?" prompt when build files exist). + # None means show no diffs and don't clean -- the right answer for unattended. + retry_install "$1" "AUR" "sudo -u \"$username\" yay -S --noconfirm --answerdiff None --answerclean None \"$1\"" } # Git Install |
