<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15033</bug_id>
          
          <creation_ts>2023-02-16 11:33:12 +0000</creation_ts>
          <short_desc>wic: uefi-kernel loader breaks usage of IMAGE_EFI_BOOT_FILES</short_desc>
          <delta_ts>2023-02-26 13:15:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pavel Zhukov">pavel</reporter>
          <assigned_to name="Pavel Zhukov">pavel</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94933</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2023-02-16 11:33:12 +0000</bug_when>
    <thetext>b18025fc8a2dad963b6f4b697e24455f2511b279 introduces possibility to have uefi-kernel loader in wic however it returns from  do_configure_partition() to early which causes AttributeError due to undefined &apos;install_task&apos; attribute [1]
Reproducer is: 
part /boot --source bootimg-efi --sourceparams=&quot;loader=uefi-kernel&quot; --ondisk=sda --fstype=vfat --label boot --active --align 1024 --use-uuid 
and:
IMAGE_EFI_BOOT_FILES += &quot;mydtb.dtb;EFI/BOOT/&quot;

[1]
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
| 
| Traceback (most recent call last):
|   File &quot;/mnt/builds/yocto/sources/scripts/wic&quot;, line 547, in &lt;module&gt;
|     sys.exit(main(sys.argv[1:]))
|              ^^^^^^^^^^^^^^^^^^
|   File &quot;/mnt/builds/yocto/sources/scripts/wic&quot;, line 542, in main
|     return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
|            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|   File &quot;/mnt/builds/yocto/sources/scripts/lib/wic/help.py&quot;, line 83, in invoke_subcommand
|     subcmd[0](args, usage)
|   File &quot;/mnt/builds/yocto/sources/scripts/wic&quot;, line 222, in wic_create_subcommand
|     engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
|   File &quot;/mnt/builds/yocto/sources/scripts/lib/wic/engine.py&quot;, line 190, in wic_create
|     plugin.do_create()
|   File &quot;/mnt/builds/yocto/sources/scripts/lib/wic/plugins/imager/direct.py&quot;, line 98, in do_create
|     self.create()
|   File &quot;/mnt/builds/yocto/sources/scripts/lib/wic/plugins/imager/direct.py&quot;, line 186, in create
|     self._image.prepare(self)
|   File &quot;/mnt/builds/yocto/sources/scripts/lib/wic/plugins/imager/direct.py&quot;, line 367, in prepare
|     part.prepare(imager, imager.workdir, imager.oe_builddir,
|   File &quot;/mnt/builds/yocto/sources/scripts/lib/wic/partition.py&quot;, line 186, in prepare
|     plugin.do_prepare_partition(self, srcparams_dict, creator,
|   File &quot;/mnt/builds/yocto/sources/scripts/lib/wic/plugins/source/bootimg-efi.py&quot;, line 371, in do_prepare_partition
|     for src_path, dst_path in cls.install_task:
|                               ^^^^^^^^^^^^^^^^
| AttributeError: type object &apos;BootimgEFIPlugin&apos; has no attribute &apos;install_task&apos;. Did you mean: &apos;do_install_disk&apos;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94936</commentid>
    <comment_count>1</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2023-02-16 15:32:49 +0000</bug_when>
    <thetext>https://lists.openembedded.org/g/openembedded-core/message/177286</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94937</commentid>
    <comment_count>2</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2023-02-16 15:33:14 +0000</bug_when>
    <thetext>Nice to have test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95015</commentid>
    <comment_count>3</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2023-02-25 21:20:48 +0000</bug_when>
    <thetext>https://lists.openembedded.org/g/openembedded-core/message/177720</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95016</commentid>
    <comment_count>4</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2023-02-26 13:15:47 +0000</bug_when>
    <thetext>https://git.openembedded.org/openembedded-core/commit/?id=d8ef15bb9ef652bf85002fe523ff5060b47bca6a
https://git.openembedded.org/openembedded-core/commit/?id=a6372f70f31b39ce9867b705d02205621d7a8685</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>