To include state scripts in Artifacts and images, create a new Yocto recipe that
mender-state-scripts and copies them into place in
variable. This works for both root file system and Artifact
Take a look at the example-state-scripts recipe to get started.
If you add or remove a recipe containing state scripts to a build, you need
to clear the
tmp directory of the Yocto build before building a new image.
An alternative is to call
bitbake -c clean <recipe> with the affected
recipe, but the first method is recommended since it will cover all cases,
regardless of recipe name. Merely changing a recipe does not require this
© 2022 Northern.tech AS