Whenever do_rootfs of bitbake core-image-minimal has finished executing I want to execute my custom task.
bitbake core-image-minimal
I created a task my-task.bb in meta-xxx/recipes-cor