Hi, 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? Something like this: if in_efi_mode; then # Load modules (EFI mode) else # Load modules (BIOS mode) fi Just not sure what to test to determine what mode we're booting with. Thanks, Marc _______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
