OTA and Standalone update together

Hello,

at the moment, my device does OTA updates over mobile network which works really good. Now i want to include the possibility to update over USB, which mender supports in the standalone mode.

As i should disable/stop the running mender daemon, what exactly happens when the new image boots, and has mender daemon running?

E.g.:

  1. Image A active
  2. Disable/Stop mender daemon
  3. Install new image with mender standalone
  4. Reboot
  5. Image B active (running mender daemon as default)
  6. Running mender -commit

Should i again stop mender daemon before running mender -commit?

Thank you.

Best regards,
Kevin