Install grub-pc in the amd64 image

grub-pc is installed after the extra packages with an empty install_devices
answer so its postinst does not write GRUB to the build disk. The build log
lists the resulting grub* packages, since grub-pc conflicts with
grub-efi-amd64 on Debian. verify-image.sh checks for it on amd64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ilkerandClaude Opus 5.5 committed 2026-11-06 16:53:04 +01:00
1 parent e1d2c00a97
commit e9a9e394f1
2 files changed
+14

No files matched your search

+13
View File
@@ -152,6 +152,19 @@ if [ -n "${PVE_EXTRA_PACKAGES}" ]; then
$APT install ${PVE_EXTRA_PACKAGES}
fi
# grub-pc: dugumde GRUB'i curtin degil imaj saglasin. Yalnizca amd64'te var
# (arm64'te i386-pc hedefi yok). Debian'da grub-pc ile grub-efi-amd64 birbiriyle
# catisir; kurulum grub-efi-amd64'u kaldirirsa asagidaki listede gorunur.
# 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
$APT install grub-pc
log "Kurulu GRUB paketleri:"
dpkg-query -W -f='${db:Status-Abbrev} ${Package} ${Version}\n' 'grub*' 2>/dev/null \
| grep '^ii' || true
fi
log "Kurulan surumler:"
dpkg-query -W -f='${Package} ${Version}\n' proxmox-ve pve-manager proxmox-default-kernel ifupdown2 || true
+1
View File
@@ -46,6 +46,7 @@ check "pvesh ikilisi mevcut" 'present "usr/bin/pvesh"'
check "ifupdown2 mevcut" 'present "usr/share/ifupdown2"'
check "cloud-init mevcut" 'present "usr/bin/cloud-init"'
check "curtin-hooks mevcut" 'present "curtin/curtin-hooks"'
check "grub-pc kurulu (amd64)" 'present "var/lib/dpkg/info/grub-pc.list" || ! present "usr/lib/grub/x86_64-efi"'
echo
echo "==> Olmamasi gerekenler"