Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
【Solved】How to detect booted mode (UEFI vs BIOS)
#1
Star 
Hello

There is a way (a variable) to know if Ventoy pendrive booted in UEFI mode or in BIOS (legacy) mode, and to select the displayed theme : one for UEFI mode and another for BIOS mode.

Thanks
Reply
#2
grub_platform is a builtin variable in grub2, for legacy BIOS mode it is like: pc, for UEFI mode it is like: x86_64-efi

Currently, in the bottom left of the boot menu will display:

1.0.24 BIOS www.ventoy.net  ----> This means current is Legacy BIOS mode
1.0.24 UEFI www.ventoy.net  ----> This means current is UEFI mode
Reply
#3
Thanks

How can I use this variable for changing the Ventoy theme : one BIOS theme vs UEFI theme ?
Reply
#4
I just support and commit it, the feature will be avaliable in the next release.
Reply
#5
You can use Ventoy-1.0.25
Reply
#6
Thanks a lot for the job
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)