From: Xiangyu Chen <xiangyu.chen@eng.windriver.com>
To: yoann.congal@smile.fr, xiangyu.chen@eng.windriver.com,
openembedded-core@lists.openembedded.org,
Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Barker <paul@pbarker.dev>, arindam.nath@amd.com
Subject: Re: [OE-core][PATCH] grub: update search parameter
Date: Thu, 23 Apr 2026 15:18:32 +0800 [thread overview]
Message-ID: <88dd3787-7e07-4016-8bd2-529772791df8@eng.windriver.com> (raw)
In-Reply-To: <DI0BSP6LTXLQ.3H9BKWL7KE1YY@smile.fr>
在 2026/4/23 14:38, Yoann Congal via lists.openembedded.org 写道:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On Thu Apr 23, 2026 at 8:04 AM CEST, Xiangyu Chen via lists.openembedded.org wrote:
>> Hi Richard,
>>
>>
>> Since the behavior was found in OE scarthgap branch, could you please
>> help to cherry-pick this
>>
>> commit: 42b530581f72 ("grub: update search parameter") to whinlatter and
>> scarthgap branch?
> Hello,
>
> For whinlatter, that will be too late (the last build has already left for
> QA).
>
> For scarthgap, I would need to look into it (change does not look
> trivial). Can you send a rebased patch targeting scarthgap?
>
> Thanks!
Thanks for your info, a rebased patch will be sent later.
Br,
Xiangyu
>
>>
>> Thanks.
>>
>>
>> Br,
>>
>> Xiangyu
>>
>> 在 2026/3/31 10:57, Xiangyu Chen 写道:
>>> Hi Paul,
>>>
>>>
>>> On 3/5/26 19:49, Paul Barker wrote:
>>>> I'm not sure that this can work for all use cases. The grub
>>>> documentatation for hints says "First try the device HINT" (i.e. it's
>>>> explicitly a device), whereas the documentation for cmdpath says that it
>>>> is "an absolute directory name".
>>> While the documentation defines $cmdpath as a directory and hints as
>>> devices, grub’s internal implementation of
>>> grub_disk_open (grub-core/kern/disk.c [1]) is designed to handle this
>>> exact "device+path" format.
>>>
>>> When a hint like (hd0,gpt1)/EFI/BOOT/ is passed, grub_disk_open calls
>>> find_part_sep to locate the partition/path delimiter.
>>> It then uses grub_memcpy to extract only the device part (e.g., (hd0)
>>> into the raw buffer for the disk driver.
>>>
>>> The remaining string (gpt1)/EFI/BOOT/) is passed to
>>> grub_partition_probe, which identifies the partition and gracefully
>>> ignores the trailing directory path.
>>>
>>> The current syntax ($cmdpath) results in double parentheses ((hd0...))
>>> if the variable is already populated.
>>> In grub_disk_open, this extracts a malformed device name ((hd0 which
>>> no driver can open, triggering a hard no such device error.
>>>
>>>
>>> Ref:
>>>
>>> [1]
>>> https://elixir.bootlin.com/grub/grub-2.14/source/grub-core/kern/disk.c#L192
>>>
>>>
>>> Br,
>>>
>>> Xiangyu
>>>
>
> --
> Yoann Congal
> Smile ECS
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#235740): https://lists.openembedded.org/g/openembedded-core/message/235740
> Mute This Topic: https://lists.openembedded.org/mt/118009422/7175143
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [xiangyu.chen@eng.windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
next prev parent reply other threads:[~2026-04-23 7:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-26 8:19 [OE-core][PATCH] grub: update search parameter Xiangyu Chen
2026-03-05 11:49 ` Paul Barker
2026-03-31 2:57 ` Xiangyu Chen
2026-04-23 6:04 ` Xiangyu Chen
2026-04-23 6:38 ` Yoann Congal
2026-04-23 7:18 ` Xiangyu Chen [this message]
2026-04-23 7:29 ` Yoann Congal
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=88dd3787-7e07-4016-8bd2-529772791df8@eng.windriver.com \
--to=xiangyu.chen@eng.windriver.com \
--cc=arindam.nath@amd.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=paul@pbarker.dev \
--cc=richard.purdie@linuxfoundation.org \
--cc=yoann.congal@smile.fr \
/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