Dear Toradex Team,
we are using Torizon OTA to update the Docker images on our apalis-imx8 devices. I am looking for a mechanism where the devices only download the update after it has been scheduled, and then apply it when the device is booted the next time.
The reason behind this is that our clients are turning on the device only for a short amount of time, e.g. 2h and then turn it off again. We need to avoid restarting the docker containers while the clients are using it, because this can cause data loss. Therefore, the idea of downloading the update while they are using it and then applying it on next boot.
My first idea was to use the new Consent Mode introduced in Torizon 7.4, but it turns out that it waits with downloading the images until consent is given and then recreates the docker containers immediately after download.
My second idea was to disable the automatic reboot when an OS update is performed and then always schedule a docker update together with an OS update. The idea was that it will wait with applying the new docker images until the OS update is performed, which will happen at next boot. But then I figured out, a few seconds after everything is downloaded and the device did not reboot, aktualizr is restarted which causes the containers to restart as well. I have not managed to prevent systemd from restarting aktualizr yet, but I am working on it.
Can you give me any advice on how to achieve this separation of download and applying the update? Am I on the right track or is there a better way?
Thank you and best regards,
Thorbjörn