grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] util/grub.d/30_os-prober.in: Conditionally show or hide chai


From: Pascal Hambourg
Subject: Re: [PATCH] util/grub.d/30_os-prober.in: Conditionally show or hide chain and efi menu entries
Date: Wed, 17 Jan 2024 16:08:17 +0100
User-agent: Mozilla Thunderbird

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 ? The goal is to hide "chain" menu entries when booting in EFI mode, no more.



reply via email to

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