OK I tried it but I get the following Error:
--script /home/username/build/mender-convert/state-scripts/Download_Enter_00
scripter: unsupported script state: Download
Edit:
Ok, I’ve found following information in the code:
var availableScriptType = map[string]bool{
// Idle, Sync and Download scripts are part of rootfs and can not
// be a part of the artifact itself; Leaving below for refference...
//"Idle": true,
//"Sync": true,
//"Download": true,
"ArtifactInstall": true,
"ArtifactReboot": true,
"ArtifactCommit": true,
"ArtifactRollback": true,
"ArtifactRollbackReboot": true,
"ArtifactFailure": true,
}
And also I’ve found the information in the documentation for version 2.3:
https://docs.mender.io/2.3/artifacts/state-scripts#root-file-system-and-artifact-scripts
And it also has been answered here:
Just for information