On Fri, Oct 2, 2020 at 3:12 AM Petr Pisar <ppi...@redhat.com> wrote:
>
> 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?

It's in an arch specific RPM. e.g.
grub2-efi-x64-2.04-31.fc34.x86_64.rpm contains grubx64.efi created and
signed within the Fedora build system.

The grub2-install created executable is not signed, will not work with
UEFI Secure Boot enabled unless manually signed by the user, and it
has different behavior from the Fedora created one: where it expects
to find modules and the grub.cfg.

> But the correct invocation for EFI systems is different. You just use
> "grub2-install" without the disk device name.

No the correct invocation is "dnf reinstall grub2-efi-x64 shim-x64"

Suggesting UEFI users install GRUB with grub2-install is asking for a
support nightmare, it's untenable.

-- 
Chris Murphy
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to