Check if update is in progress from Mender standalone mode

Hi There,

I have a question about checking the current update state from Mender standalone mode. We are using Mender in our devices in strict standalone mode currently.

I’ve seen the mender command has some support for probing the current update state via subcommands commit and rollback, as they note: “Returns (2) if no update in progress.” However, this is not helpful when one only wants to check whether or not there currently is an update in progress. Simply running commit/rollback unconditionally is not an option, as this depends on whether the firmware is to accepted or not.

What is the idiomatic way to check if an update is in progress in Mender standalone mode? Or must we resort to state scripts for this?

I’ve seen this thread: Mender 2.0 - How to get the update progress from standalone mender? but we’re not interested in the download progress, and D-Bus is not an option as far as I can see in Mender standalone mode. Is this correct?

Any help is appreciated, thanks in advance, best regards,

Kris

Your assumption is correct. Currently I’m afraid there is no other way than using state scripts and recording the state somewhere.