help-grub
[Top][All Lists]
Advanced

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

Re: test from within grub.cfg if current boot is from legacy bios or UEF


From: Andrei Borzenkov
Subject: Re: test from within grub.cfg if current boot is from legacy bios or UEFI
Date: Mon, 21 Nov 2022 09:36:49 +0300

On Mon, Nov 21, 2022 at 7:50 AM Dashi Cao <dscao999@hotmail.com> wrote:
>
> Hello all,
> Is there any variable in grub configuration that can tell if current
> boot iis from legacy bios or UEFI?

Yes, you can check the environment variable $grub_platform. It is "pc"
for legacy BIOS and "efi" for UEFI.



reply via email to

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