Hi Ross,
Thank you for your help. My build is using a layer which is generating a file in a ROOTFS_POSTPROCESS_COMMAND command. I would like to modify this file as part of the yocto build, but I'd prefer not to modify/fork this layer as it is from a vender.

I'm creating my own layer, which will modify the file created in the vender layer's ROOTFS_POSTPROCESS_COMMAND command. If I use pkg_postinst, then the file will not have been created when pkg_postinst is called, because (as far as i understand) the ROOTFS_POSTPROCESS_COMMAND commands will only be executed after all packages have been installed on the root filesystem image.

Any suggestions on how to proceed?

Regards,
Donal

On Fri, 9 Nov 2018 at 12:13, Burton, Ross <ross.burton@intel.com> wrote:
>
> A recipe that ship files and generates packages can't also inherit
> core-image because it can't both be a package and an image.  If you
> want this package to run something when it is installed, write a
> post-install function (pkg_postinst).
>
> Ross