On 5/13/19 8:43 AM, Pascal Hambourg wrote:
Sorry for the late answer.

Le 05/05/2019 à 11:11, ToddAndMargo a écrit :

I have a Fedora 30 flash drive set up for dual booting
from Legacy or UEFI.  It need to be able to boot from any
and all computers.
(...)
Remaking grub.cfg, I get

    # grub2-mkconfig -o /boot/grub2/grub.cfg
    Generating grub configuration file ...
    Adding boot menu entry for EFI firmware configuration
    done

Uhhhhh.. I wanted legacy, not EFI.

It should not matter. In Debian, grub.cfg files generated in legacy and EFI mode are very similar (at least for Linux boot entries).

Are there major differences in Fedora ?

How do I trick grub2-mkconfig to make me a Legacy boot
when I am booted into EFI?

You can try to boot with the "noefi" kernel parameter.
Or unmount pstore and efivar filesystems and unload efi kernel modules.

Hi Pascal,

This is a change from Fedroa 29 to 30.  "grub2-mkconfig" now hunts
down what type of boot you have and generates a grub.cfg
accordingly.

Now if I could boot from legacy, I could generate a legacy
grub.cfg, but since it won't boot into legacy, I am stuck.

What I am thinking of doing is booting legacy off a Live ISO
and then doing the chroot thing.  grub2-mkconfig will then
see legacy and generate appropriately.

If it works, the only draw back is that it will need to be
done after every kernel update.  Be nice if I could somehow
trick grub2-mkconfig.

But on the bright side, if I ever have to restore a system
from dump, I will know how to also restore grub.

Thank you for the help!
-T



_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to