Skip to content

Commit

Permalink
fix: properly install grub in the ESP partition (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsander-souza authored Jun 25, 2024
1 parent e3888d9 commit 8bb3a12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ubuntu/scripts/setup-bootloader
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ dpkg --configure -a
# Ensure the existence of linux-image-generic for non-cloudimg images.
apt-get -y install linux-image-generic

dpkg-reconfigure grub-efi-amd64
update-grub

grub-install \
--target=x86_64-efi \
--efi-directory=/boot/efi \
--bootloader-id=ubuntu \
--recheck

update-initramfs -uk all
update-grub

efibootmgr -v

0 comments on commit 8bb3a12

Please sign in to comment.