<?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>6502</bug_id>
          
          <creation_ts>2014-07-02 22:53:23 +0000</creation_ts>
          <short_desc>Image does not get rebuild after changes in image recipe</short_desc>
          <delta_ts>2015-01-27 10:48:51 +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>BitBake</product>
          <component>bitbake</component>
          <version>1.6.1</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>minor</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Volker">lists.volker</reporter>
          <assigned_to name="Roxana Ciobanu">roxana.ciobanu</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>roxana.ciobanu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44296</commentid>
    <comment_count>0</comment_count>
    <who name="Volker">lists.volker</who>
    <bug_when>2014-07-02 22:53:23 +0000</bug_when>
    <thetext>I had the following in my image recipe
----
set_root_pwd() {                                                                
    # we know we have /etc/shadows because we install openssh
    sed -i &apos;s|^root:[^:]*:|root:XXXXXXXX:|&apos; \
        ${IMAGE_ROOTFS}/etc/shadow
}
# execute function on image creation
ROOTFS_POSTPROCESS_COMMAND += &quot;set_root_pwd;
----
then I run bitbake to set the password and it worked. So I have a current image.

Now I disabled the function by commenting out the one line that actually executes it.
---
#ROOTFS_POSTPROCESS_COMMAND += &quot;set_root_pwd;
---

If I try now to build the image again it wont build
---
NOTE: Tasks Summary: Attempted 2655 tasks of which 2655 didn&apos;t need to be rerun and all succeeded.
---

I would have assumed that every change would rebuild the changed component. This does not seem to be the case with the image recipe.



Some more details:

Base of my image recipe:
----
IMAGE_INSTALL = &quot;packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}&quot;
inherit core-image                                                              
[other options skipped]
----

My distro.conf contains the following line. This is not relevant if you modify the set_root_pwd() to run some other commands. If you don&apos;t modify it, you need th ssh-serveropenssh image feature.
---
IMAGE_FEATURES = &quot;read-only-rootfs ssh-serveropenssh package-management&quot;
---</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48323</commentid>
    <comment_count>1</comment_count>
    <who name="Magnus Olsson">magnus</who>
    <bug_when>2015-01-27 10:48:51 +0000</bug_when>
    <thetext>*** Bug 7024 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>