Support legacy BIOS and UEFI deploys from one image
grub-pc and grub-efi-amd64 conflict on Debian, so installing grub-pc at build time removed the UEFI package. Keep grub-efi-amd64 in the image and ship the matching grub-pc .deb under /var/lib/pve-maas/debs instead. curtin-hooks installs it offline before builtin_curthooks when the node booted in legacy BIOS mode; UEFI nodes are left as they are. verify-image.sh now checks for grub-efi-amd64 and the stored grub-pc .deb on amd64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
21f64f0785
commit
cb9309cac2
3 files changed
+66
-14
No files matched your search
@@ -46,7 +46,10 @@ 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"'
|
||||
# UEFI imaji grub-efi-amd64 ile gelir; legacy BIOS dugumler icin grub-pc .deb'i
|
||||
# imajda durur ve curtin-hooks onu deploy aninda kurar. arm64'te ikisi de yok.
|
||||
check "grub-efi-amd64 kurulu (amd64 UEFI)" 'present "var/lib/dpkg/info/grub-efi-amd64.list" || ! present "usr/lib/grub/x86_64-efi"'
|
||||
check "grub-pc .deb imajda (legacy BIOS icin)" 'grep -qE "^\./var/lib/pve-maas/debs/grub-pc_.*\.deb$" "$TMP/list" || ! present "usr/lib/grub/x86_64-efi"'
|
||||
|
||||
echo
|
||||
echo "==> Olmamasi gerekenler"
|
||||
|
||||
Reference in new issue
Block a user