On Thu, Oct 01, 2020 at 11:07:28AM -0700, Samuel Sieb wrote:
On 10/1/20 5:52 AM, Marius Schwarz wrote:
>
> >
> > Is it possible to boot from the stick and then perform a grub-install
> > with an old grub?
> >
>
> This attempt failed too:
>
> # grub2-install /dev/sda
> grub2-install: Fehler: /usr/lib/grub/x86_64-efi/modinfo.sh existiert
> nicht. Bitte geben Sie --target oder --directory an.
>
> and that file seems not to be part of any package. There is only one for
> "i386-pc".
You can't (and must not!) use grub2-install on an EFI system.
Of course you have. How else would you get GRUB EFI executable onto the boot
partition and register it into boot environments?
But the correct invocation for EFI systems is different. You just use
"grub2-install" without the disk device name.
The missing file is provided by grub2-efi-x64-modules package.
-- Petr