From: Pavel Zhukov <pavel@zhukoff.net>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Maxim Uvarov <maxim.uvarov@linaro.org>,
openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] wic: Fix populating of IMAGE_EFI_BOOT_FILES with uefi-kernel
Date: Thu, 16 Feb 2023 17:30:09 +0100 [thread overview]
Message-ID: <874jrl6059.fsf@desktop.zhukoff.net> (raw)
In-Reply-To: <e5864a794c05bea8639b7e309d957508cce9bc2e.camel@linuxfoundation.org>
"Richard Purdie" <richard.purdie@linuxfoundation.org> writes:
> On Thu, 2023-02-16 at 13:23 +0100, Pavel Zhukov wrote:
>> wic plugin crashed if IMAGE_EFI_BOOT_FILES is not empty and uefi-kernel
>> loader specified because of preliminary return from the function.
>> [Yocto #15033]
>> Fixes:
>> > File "/mnt/builds/yocto/sources/scripts/lib/wic/plugins/source/bootimg-efi.py", line 371, in do_prepare_partition
>> > for src_path, dst_path in cls.install_task:
>> > ^^^^^^^^^^^^^^^^
>> > AttributeError: type object 'BootimgEFIPlugin' has no attribute 'install_task'. Did you mean: 'do_install_disk'?
>>
>> Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
>> ---
>> scripts/lib/wic/plugins/source/bootimg-efi.py | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py
>> index 4b00913a70..d6aeab2aad 100644
>> --- a/scripts/lib/wic/plugins/source/bootimg-efi.py
>> +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py
>> @@ -221,7 +221,7 @@ class BootimgEFIPlugin(SourcePlugin):
>> elif source_params['loader'] == 'systemd-boot':
>> cls.do_configure_systemdboot(hdddir, creator, cr_workdir, source_params)
>> elif source_params['loader'] == 'uefi-kernel':
>> - return
>> + pass
>> else:
>> raise WicError("unrecognized bootimg-efi loader: %s" % source_params['loader'])
>> except KeyError:
>
> Thanks for finding that!
>
> Is there some way we should be tweaking the wic tests to avoid this
> regressing in future?
Sure.
Seems like bootmgr-efi plugin is not covered by the tests. I'll create
some.
>
> Cheers,
>
> Richard
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#177287): https://lists.openembedded.org/g/openembedded-core/message/177287
> Mute This Topic: https://lists.openembedded.org/mt/97004405/6390638
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [pavel@zhukoff.net]
> -=-=-=-=-=-=-=-=-=-=-=-
prev parent reply other threads:[~2023-02-16 16:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-16 12:23 [PATCH] wic: Fix populating of IMAGE_EFI_BOOT_FILES with uefi-kernel Pavel Zhukov
2023-02-16 12:42 ` [OE-core] " Richard Purdie
2023-02-16 16:30 ` Pavel Zhukov [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=874jrl6059.fsf@desktop.zhukoff.net \
--to=pavel@zhukoff.net \
--cc=maxim.uvarov@linaro.org \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.