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 <noreply@anthropic.com>
This commit is contained in:
1 parent
e9a9e394f1
commit
21f64f0785
1 file changed
+7
-1
@@ -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 \
|
||||
|
||||
Reference in new issue
Block a user