Error with grub2-install on Amazon Linux 2023 after Migrating to LVM with EFI System
1
vote
1
answer
1011
views
I set up an Amazon Linux 2023 EC2 and migrated the disk over to a new one to use LVM, (I didnt put the BIOS and
/boot/efi
on LVM.) I believe my system is using EFI, as indicated by the contents in /sys/firmware/efi/
, but I'm facing an error with grub2-install
.
Here's the sequence of commands I ran:
grub2-mkconfig -o /boot/grub2/grub.cfg
dracut -f -H --regenerate-all
grub2-install --recheck /dev/nvme1n1p2
However grub2-install
fails with the following error:
Generating grub configuration file ...
done
grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.
Asked by allyman17
(29 rep)
Mar 12, 2024, 07:00 AM
Last activity: Mar 12, 2024, 02:49 PM
Last activity: Mar 12, 2024, 02:49 PM