Installer: fix for bookworm and bullseye

The package 'grub-efi-amd64-unsigned' was introduce in trixie
This commit is contained in:
Roland Clobus 2024-08-28 22:43:06 +02:00
parent c7bc5f311c
commit 86078425e2
No known key found for this signature in database
GPG Key ID: 62C57C6AA61495BD
1 changed files with 6 additions and 1 deletions

View File

@ -413,7 +413,12 @@ then
DI_REQ_PACKAGES="${DI_REQ_PACKAGES} libfuse2"
fi
DI_REQ_PACKAGES="${DI_REQ_PACKAGES} grub-efi-amd64 efibootmgr grub-efi-amd64-signed shim-signed" # UEFI (required for d-i, includes suggested packages)
DI_REQ_PACKAGES="${DI_REQ_PACKAGES} efibootmgr grub-efi grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-unsigned grub-efi-amd64-signed grub2-common mokutil shim-helpers-amd64-signed shim-signed shim-signed-common shim-unsigned cryptsetup cryptsetup-initramfs keyutils" # UEFI (required by Calamares)
DI_REQ_PACKAGES="${DI_REQ_PACKAGES} efibootmgr grub-efi grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed grub2-common mokutil shim-helpers-amd64-signed shim-signed shim-signed-common shim-unsigned cryptsetup cryptsetup-initramfs keyutils" # UEFI (required by Calamares)
# grub-efi-amd64-unsigned was introduced in trixie
if [ $(Check_package_available "grub-efi-amd64-unsigned") -eq 1 ]
then
DI_REQ_PACKAGES="${DI_REQ_PACKAGES} grub-efi-amd64-unsigned"
fi
DI_PACKAGES="linux-image-amd64"
;;