ArtifactInstall and ArtifactCommit state scripts are not getting executed, only Download script is executing

found solution https://hub.mender.io/t/state-scripts-do-not-get-executed/3901/4?u=nareshtech20

As mentioned in artifact-creation state-scripts

Blockquote
The reason for having both root filesystem and Artifact scripts is related to the fact that some scripts must run before the Client downloads the Artifact and as such can not be delivered with the Artifact. Those scripts are Idle , Sync and Download . Therefore it is important to remember that when deploying a new update, all scripts will be run from the currently running root filesystem until ArtifactInstall , at which point the scripts from the new Artifact will take over.
Blockquote

Only Idle, Sync, Download state scripts can be on device, remaining states scripts ArtifactInstall, ArtifactReboot, ArtifactCommit, ArtifactRollback, ArtifactRollbackReboot, ArtifactFailure should be part of artifact itself.

1 Like