On 3/19/24 17:29, Tom Horsley wrote:
On Tue, 19 Mar 2024 19:05:51 -0400 Sam Varshavchik wrote:
[root@jack ~]# grub2-install /dev/sda
That is the way you install grub for old MSDOS partitions.
To install grub with GPT and use EFI, it needs different arguments. Something like:
grub2-install --target x86_64-efi --removable --boot-directory=/mnt/boot --efi-directory=/mnt
Though that's from my notes for making a bootable USB stick, so probably not all of those are needed for a hard disk. Read about the options in the grub2 info docs.
That's only if you're making some sort of bootable media. The installed system does not use grub2-install at all. See the other thread for details.