* [PATCH] wic: Fix populating of IMAGE_EFI_BOOT_FILES with uefi-kernel
@ 2023-02-16 12:23 Pavel Zhukov
2023-02-16 12:42 ` [OE-core] " Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Zhukov @ 2023-02-16 12:23 UTC (permalink / raw)
To: openembedded-core; +Cc: Pavel Zhukov, Maxim Uvarov
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:
--
2.39.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core] [PATCH] wic: Fix populating of IMAGE_EFI_BOOT_FILES with uefi-kernel
2023-02-16 12:23 [PATCH] wic: Fix populating of IMAGE_EFI_BOOT_FILES with uefi-kernel Pavel Zhukov
@ 2023-02-16 12:42 ` Richard Purdie
2023-02-16 16:30 ` Pavel Zhukov
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2023-02-16 12:42 UTC (permalink / raw)
To: Pavel Zhukov, openembedded-core; +Cc: Maxim Uvarov
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?
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core] [PATCH] wic: Fix populating of IMAGE_EFI_BOOT_FILES with uefi-kernel
2023-02-16 12:42 ` [OE-core] " Richard Purdie
@ 2023-02-16 16:30 ` Pavel Zhukov
0 siblings, 0 replies; 3+ messages in thread
From: Pavel Zhukov @ 2023-02-16 16:30 UTC (permalink / raw)
To: Richard Purdie; +Cc: Maxim Uvarov, openembedded-core
"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]
> -=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-02-16 16:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox