<?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>15900</bug_id>
          
          <creation_ts>2025-06-10 07:17:00 +0000</creation_ts>
          <short_desc>image_types_wic: incorrect dependencies on wks files and WKS_SEARCH_PATH</short_desc>
          <delta_ts>2025-08-21 15:06:34 +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>oe-core other</component>
          <version>6.0</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.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frederic Hoerni">fhoerni</reporter>
          <assigned_to name="Trevor Woerner">twoerner</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>tim.orling</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>102223</commentid>
    <comment_count>0</comment_count>
    <who name="Frederic Hoerni">fhoerni</who>
    <bug_when>2025-06-10 07:17:00 +0000</bug_when>
    <thetext>Adding a wks file earlier in the search path is not taken
into account automatically when bitbaking an image recipe using wic.

One need to run bitbake -c cleansstate for the new file to be taken into account.

To reproduce the issue:

1. Init (use default WKS_FILE=&quot;qemux86-directdisk.wks&quot;)

    . oe-init-build-env
    echo &apos;IMAGE_FSTYPES += &quot;wic&quot;&apos; &gt;&gt; conf/local.conf

2. First clean build

    rm -f wic/qemux86-directdisk.wks
    bitbake core-image-minimal -c cleansstate &amp;&amp; bitbake core-image-minimal

3. Create an override for WKS_FILE (earlier in WKS_SEARCH_PATH)
and introduce an error (a very small partition size) so that we can see it happen (or not).

    mkdir -p wic
    echo &quot;part / --source rootfs --fstype=ext4 --fixed-size 1M&quot; &gt; wic/qemux86-directdisk.wks

4. Build again

    bitbake core-image-minimal
    ...
    NOTE: Tasks Summary: Attempted 4670 tasks of which 4670 didn&apos;t need to be rerun and all succeeded.

=&gt; Nothing gets built, whereas we should see this error:
| ERROR: Actual rootfs size (28713 kB) is larger than allowed size 1024 kB


I have proposed a patch here:
https://lists.openembedded.org/g/openembedded-core/message/216887</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102655</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-08-21 15:06:34 +0000</bug_when>
    <thetext>Fixed by:

https://git.openembedded.org/openembedded-core/commit/?id=ef96e2efcd95785e29ff7c62b2cb76e26f46f5ec

https://git.openembedded.org/openembedded-core/commit/?id=ef96e2efcd95785e29ff7c62b2cb76e26f46f5ec</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>