Replies: 5 comments 3 replies
-
The value of the variable grub-platform is determined at compile time and it only indicates the platform of grub2 itself: pc, efi, uboot, multiboot, coreboot, xen ... grubfm will set variable grub2-filemanager/boot/grubfm/init.sh Lines 76 to 79 in cba50f3 code: https://github.com/a1ive/grub/blob/50ac71615b4344fdf829c5c25f1f1e5680745eba/grub-core/grubfm/fm.c#L301 |
Beta Was this translation helpful? Give feedback.
-
I recommend
|
Beta Was this translation helpful? Give feedback.
-
The grub under the multiboot platform acts like a real operating system. If we write a "uefi compatibility layer", then we can boot the efi file. And vice versa. |
Beta Was this translation helpful? Give feedback.
-
OK. thanks very much. So basically all previous menuentries, scripts, etc. that test for grub_platform = pc will no longer work if using the elf version. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Sorry, but I don't understand this 'multiboot' concept and why grub_platform is set to multiboot - could you explain please?
Are you saying that if we boot to grub in Legacy mode on Virtual Box and grub_platform is set to "multiboot" then it is possible to also UEFI32 and UEFI64 boot to EFI files too, even though we are in legacy mode (and the CPU will be in real mode)? If so, how do we know which UEFI is supported UEFI64 or UEFI32?
Also, how to tell what mode we have booted in?
If boot using elf iso - e.g. if we want to boot to Windows can we boot in UEFI and Legacy mode?
P.S. The files in grubfm \samples test for $grub_platform == "pc" - so they won't work if boot using elf iso?
Beta Was this translation helpful? Give feedback.
All reactions