From 8dc0d177400794a321e807b5bcabf30853006591 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 3 Nov 2026 13:54:14 +0100 Subject: [PATCH] Let post-pve-install go on when legacy sources are kept (#18403) On a PVE 9 host without deb822 .sources files the script asks whether to disable the legacy .list sources, then read the answer from $? on the next line. Under set -e a "No" ended the whole run with exit 1 right there, so the "Kept legacy sources as-is" branch never ran and nothing after it was offered. Test whiptail in the if instead. --- tools/pve/post-pve-install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/pve/post-pve-install.sh b/tools/pve/post-pve-install.sh index bf1de735e..e2f4ba753 100644 --- a/tools/pve/post-pve-install.sh +++ b/tools/pve/post-pve-install.sh @@ -226,9 +226,8 @@ start_routines_9() { [[ -n "$list_files" ]] && MSG+="$(echo "$list_files" | sed 's|^| - |')\n" MSG+="\nDo you want to disable (comment out/rename) all legacy sources and use ONLY deb822 .sources format?\n\nRecommended for Proxmox VE 9." - whiptail --backtitle "Proxmox VE Helper Scripts" --title "Disable legacy sources?" \ - --yesno "$MSG" 18 80 - if [[ $? -eq 0 ]]; then + if whiptail --backtitle "Proxmox VE Helper Scripts" --title "Disable legacy sources?" \ + --yesno "$MSG" 18 80; then # Backup and disable sources.list if [[ -f "$listfile" ]] && grep -qE '^\s*deb ' "$listfile"; then cp "$listfile" "$listfile.bak"