<?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>15331</bug_id>
          
          <creation_ts>2023-12-21 13:04:08 +0000</creation_ts>
          <short_desc>LIVE_ROOTFS_TYPE does not work with tar.*/ext?.*/...</short_desc>
          <delta_ts>2024-02-22 16:07:10 +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>deployment</component>
          <version>unspecified</version>
          <rep_platform>All</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>5.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ludovic Jozeau">ludovic.jozeau+yocto-bug</reporter>
          <assigned_to name="Ludovic Jozeau">ludovic.jozeau+yocto-bug</assigned_to>
          <cc>ludovic.jozeau+yocto-bug</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yoann.congal</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>97630</commentid>
    <comment_count>0</comment_count>
    <who name="Ludovic Jozeau">ludovic.jozeau+yocto-bug</who>
    <bug_when>2023-12-21 13:04:08 +0000</bug_when>
    <thetext>When creating a live image (`IMAGE_FSTYPES += &quot;iso&quot;`) and setting `LIVE_ROOTFS_TYPE = &quot;tar.xz&quot;` along with `IMAGE_FSTYPES += &quot;tar.xz&quot;` the build throws an error:

`ERROR: Task do_bootimg in .../meta-custom/recipes-core/images/custom-image.bb depends upon non-existent task do_image_tar.xz in .../meta-custom/recipes-core/images/custom-image.bb`

When looking at image-live.bbclass we can see the culprit:

https://git.yoctoproject.org/poky/tree/meta/classes-recipe/image-live.bbclass?id=4a5ef39d8a6a18dc48f280fb52be1fc8bfac3799#n34

do_bootimg[depends] += &quot;... \
                        d.getVar(&apos;LIVE_ROOTFS_TYPE&apos;).replace(&apos;-&apos;, &apos;_&apos;)) if d.getVar(&apos;ROOTFS&apos;) else &apos;&apos;} \
                        &quot;

I think this line should truncate the .xz, .gz, ... part to depends on the actual task (do_image_tar, ...)

Something like: `d.getVar(&apos;LIVE_ROOTFS_TYPE&apos;).replace(&apos;-&apos;, &apos;_&apos;).split(&apos;.&apos;)[0]) if d.getVar(&apos;ROOTFS&apos;) else &apos;&apos;} \`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97631</commentid>
    <comment_count>1</comment_count>
    <who name="Ludovic Jozeau">ludovic.jozeau+yocto-bug</who>
    <bug_when>2023-12-21 14:33:02 +0000</bug_when>
    <thetext>Patch send =&gt; https://lists.openembedded.org/g/openembedded-core/message/192828</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97636</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-12-21 15:46:04 +0000</bug_when>
    <thetext>Patch on list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97956</commentid>
    <comment_count>3</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2024-01-23 14:39:29 +0000</bug_when>
    <thetext>Bulk move to Milestone 5.0 M3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98261</commentid>
    <comment_count>4</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2024-02-22 16:07:10 +0000</bug_when>
    <thetext>Fix merged: https://git.yoctoproject.org/poky/commit/?id=7608ad08ae677b16d4684243a05e4e6bf6b8632a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>