This was reported by a user:
If the device reboots during the ArtifactInstall_Leave state, the following thing happens
- The device will reboot into the new partition (which makes sense, since the Uboot setting was just set)
- Mender considers the update failed and does not commit it
- Mender does not reboot the device to rollback. Instead, it enters idle state.
The result is that the device will run in the new partition until the next time it reboots, at which point it will be rolled back by Uboot to the original partition. I feel that in this scenario Mender should either commit the update or roll it back immediately.