Retrieving artifact version in state script

I_Iob
Thu, 11 Jan 2024 16:34:18 +0000
General Discussions

I should implement a user confirmation before installing an update; the confirmation procedure should be different when the update is a just a bug fix or feature changes. In order to decide which procedure to adopt, the confirmation app needs to know the artifact version. I’d like to prepare a state script (ArtifactInstall_Enter) that communicates to the confirmation app the artifact version but, as far as I understood, Mender client do not pass such info to a state script. Is there another way to retrieve it?

Thanks

2 posts - 2 participants