Le 12/02/2017 à 15:49, Marc Smith a écrit :
In my Linux distro, I'm using a single grub.cfg and the user can boot
in either BIOS or EFI mode. However, some modules are specific to EFI,
and some to BIOS it appears.
Is there a way to test if we're "running" in EFI or BIOS mode in
grub.cfg and then use that to make a decision on what modules to load?
See the $grub_platform environment variable.
Its value is 'pc' for BIOS and 'efi' for EFI.
However I have used the same config file (generated by
update-grub/grub-mkconfig) with both GRUB BIOS and GRUB EFI without any
visible issue.
_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub