help-grub
[Top][All Lists]
Advanced

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

Re: Single grub.cfg For BIOS and EFI


From: Andrei Borzenkov
Subject: Re: Single grub.cfg For BIOS and EFI
Date: Sun, 12 Feb 2017 19:41:04 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

12.02.2017 18:47, Pascal Hambourg пишет:
> 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.
>>

It would be helpful if you gave more details which modules you need.
GRUB tries to be compatible across platforms as far as booting is
concerned, so single grub.cfg can be reused. There are always
platform-dependent modules, but they usually are not needed for booting.

>> 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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-grub




reply via email to

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