From 21f64f078555df24ee649cb59ee1593183bf8f5f Mon Sep 17 00:00:00 2001 From: ilkermanap Date: Fri, 6 Nov 2026 17:23:16 +0100 Subject: [PATCH] Accept an empty grub-pc install device list With install_devices empty and install_devices_empty unset, the grub-pc postinst fails in noninteractive mode ("You must correct your GRUB install devices") and dpkg aborts the build. Preseed install_devices_empty=true so the empty list is taken as intended. Co-Authored-By: Claude Opus 5.5 --- scripts/customize-proxmox.sh.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/customize-proxmox.sh.in b/scripts/customize-proxmox.sh.in index 15d7d5a..154644c 100644 --- a/scripts/customize-proxmox.sh.in +++ b/scripts/customize-proxmox.sh.in @@ -158,7 +158,13 @@ fi # grub-pc postinst'i build diskine grub-install yapmasin diye kurulum cihazi bos. if [ "$(dpkg --print-architecture)" = "amd64" ]; then log "grub-pc kuruluyor" - echo "grub-pc grub-pc/install_devices multiselect" | debconf-set-selections + # install_devices bos ama install_devices_empty=false ise postinst + # etkilesimsiz modda "You must correct your GRUB install devices" ile + # dpkg'yi hataya dusuruyor; bos listeyi bilerek onayliyoruz. + debconf-set-selections <<'EOF' +grub-pc grub-pc/install_devices multiselect +grub-pc grub-pc/install_devices_empty boolean true +EOF $APT install grub-pc log "Kurulu GRUB paketleri:" dpkg-query -W -f='${db:Status-Abbrev} ${Package} ${Version}\n' 'grub*' 2>/dev/null \