Re: Mechanism behind pkg_postinst_ontarget_${PN} #yocto

Quentin Schulz

Hi Stefan,

On Fri, Mar 27, 2020 at 05:26:23AM -0700, wrote:
I think the relevant part for me in that script is the func exec_postinst_scriplets(). It looks to me as if this function iterates through all scripts in the /etc/deb-postinsts directory in my case and executes them with "sh".
My problem seems to have stemmed from confusion on my part about what package the postinst attaches to.
The postinst belongs to the package with the same name as my recipe because of the _${PN}. However I specified that my recipe produces another package with the PROVIDES ="" variable.
I think you meant PACKAGES and not PROVIDES here. If that is the case,
then yes, congrats, you found the root cause :)

Otherwise, I think there might be something worth debugging and maybe


Join to automatically receive all group messages.