Skip to content

Commit

Permalink
installer: fix arm grub installation
Browse files Browse the repository at this point in the history
  • Loading branch information
neolynx committed May 15, 2024
1 parent 7dcb3a9 commit e7b6a99
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion molior-deploy.sh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7b6a99

Please sign in to comment.