[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Single grub.cfg For BIOS and EFI
From: |
Marc Smith |
Subject: |
Single grub.cfg For BIOS and EFI |
Date: |
Sun, 12 Feb 2017 09:49:52 -0500 |
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
- Single grub.cfg For BIOS and EFI,
Marc Smith <=