Le mer. 17 janv. 2024, 18:10, Pascal Hambourg <pas...@plouf.fr.eu.org> a écrit :
> On 17/01/2024 at 04:15, Vladimir 'phcoder' Serbinenko wrote: > >> onstr="$(gettext_printf "(on %s)" "${DEVICE}")" > >> cat << EOF > >> +if [ "\$grub_platform" != "efi" ]; then > > > > This is not the right check. Only "pc" platform supports chainloadin > > boot sector. All other: coreboot, qemu, emu, ieee1275, xen and > > non-x86. The only one which might is xen_pvh but this needs to be > > checked > > I expect os-prober to report boot type "chain" only on platforms which > support chainloading. Isn't it enough ? Os-prober has no idea how system is booted. And one of my systems can boot as any of coreboot, multiboot, EFI, PC or xen. Then I can run qemu version using whole disk. This together means that the same disk can boot in any way. > The goal is to hide "chain" menu > entries when booting in EFI mode, no more. > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel