I had the following in my image recipe ---- set_root_pwd() { # we know we have /etc/shadows because we install openssh sed -i 's|^root:[^:]*:|root:XXXXXXXX:|' \ ${IMAGE_ROOTFS}/etc/shadow } # execute function on image creation ROOTFS_POSTPROCESS_COMMAND += "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 += "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'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 = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}" 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't modify it, you need th ssh-serveropenssh image feature. --- IMAGE_FEATURES = "read-only-rootfs ssh-serveropenssh package-management" ---
*** Bug 7024 has been marked as a duplicate of this bug. ***