[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Single grub.cfg For BIOS and EFI

From: Pascal Hambourg
Subject: Re: Single grub.cfg For BIOS and EFI
Date: Sun, 12 Feb 2017 16:47:55 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.6.0

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]