After booting up, we are trying to determine whether this is the “first boot” after a Mender update and therefore we should commit the update. (note: we’re running things in standalone mode)
Is there a recommended way to achieve this?
We have found two ways, both of which seem to be working reliably:
- Checking the exit code of
- Parsing the output of
Is there a good reason on why we should go with one over the other or is it a matter of personal preference?