Force Mender to boot form the passive partition

Hi all,
Can I force the mender-client (maybe by setting some vars) to rollback to the passive partition?

Ill use an example:
Lets assume I have a device running my app and have mender roots module installed.
One day, I sent an upgrade and the everything goes well.
Deice current state is:
Active Partition - new app
Passive partition - old app
One day I discover a critical bug or vulnerability on my app’s new version - can I use mender-client to roll back immediately to the previous stable state?

Thanks

Hi @zivkapl,

You can write a custom Update Module (or use the script one) which manually switches, as shown in the integration documentation: Integration checklist | Mender documentation

Please note though that this will have all kinds of unexpected effects, both on your applications persistent state as well as the reported versions in Mender, so I’d always try to avoid it.

The correct way in such a case is basically always to redeploy the old, previous version through a new deployment.

Greets,
Josef

1 Like