From e7b6a99561716101423341cc9d47a81b4cbf9537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Wed, 15 May 2024 18:04:37 +0200 Subject: [PATCH] installer: fix arm grub installation --- molior-deploy.sh.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/molior-deploy.sh.inc b/molior-deploy.sh.inc index 8300ae7..c589f35 100644 --- a/molior-deploy.sh.inc +++ b/molior-deploy.sh.inc @@ -1193,7 +1193,14 @@ install_grub_bootloader() fi log "grub-install ($t)" if [ "$TARGET_BOOTTYPE" = "efi" ]; then - chroot $target grub-install --removable --recheck --force --no-floppy --target x86_64-efi >&2 + if [ "$ARCH" = "amd64" ]; then + GRUBEFITYPE=x86_64-efi + elif [ "$ARCH" = "arm64" ]; then + GRUBEFITYPE=arm64-efi + else + log_error "Unsupported EFI Architecture: $ARCH" + fi + chroot $target grub-install --removable --recheck --force --no-floppy --target $GRUBEFITYPE >&2 exit_on_error "installing grub failed" else chroot $target grub-install --modules part_msdos --recheck --force --no-floppy $disk >&2