From: Pascal Hambourg <pascal@plouf.fr.eu.org>
To: grub-devel@gnu.org
Subject: Re: [PATCH] util/grub.d/30_os-prober.in: Conditionally show or hide chain and efi menu entries
Date: Thu, 18 Jan 2024 01:49:47 +0100 [thread overview]
Message-ID: <68f3c032-efc5-44e6-abf5-33aa9b9eddd1@plouf.fr.eu.org> (raw)
In-Reply-To: <CAEaD8JMJ_6TKYH-C+maV03g6NE25EcpNys8_W=uG2RBYNN4Tcw@mail.gmail.com>
On 17/01/2024 at 17:48, Vladimir 'phcoder' Serbinenko wrote:
> Le mer. 17 janv. 2024, 18:10, Pascal Hambourg <pascal@plouf.fr.eu.org> a
> écrit :
>> On 17/01/2024 at 04:15, Vladimir 'phcoder' Serbinenko wrote:
>>>> +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
From
<https://wiki.xenproject.org/wiki/Understanding_the_Virtualization_Spectrum#PVH>:
"This is exactly what PVH is. It’s a fully PV kernel mode, running with
paravirtualized disk and network, paravirtualized interrupts and timers,
no emulated devices of any kind (and thus no qemu), no BIOS or legacy boot"
If I understand correctly, "no BIOS or legacy boot" implies no boot
sector chainloading.
>> 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.
Fine, then assume that os-prober boot type "chain" actually means "BIOS
boot sector" and show menu entries only if grub_target = pc ?
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
prev parent reply other threads:[~2024-01-18 0:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-06 15:36 [PATCH] util/grub.d/30_os-prober.in: Conditionally show or hide chain and efi menu entries Pascal Hambourg
2024-01-17 3:15 ` Vladimir 'phcoder' Serbinenko
2024-01-17 15:08 ` Pascal Hambourg
2024-01-17 16:48 ` Vladimir 'phcoder' Serbinenko
2024-01-18 0:49 ` Pascal Hambourg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=68f3c032-efc5-44e6-abf5-33aa9b9eddd1@plouf.fr.eu.org \
--to=pascal@plouf.fr.eu.org \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).