How to delay an update?


After downloading, the software is updated immediately. But, I am tasked to check if the ECU is currently at IDLE state before updating the software. Is there a way for me to delay the update even though the artifact is already downloaded? Which part of the mender codes I can put the checking of the ECU’s state?

Please advise. Thank you!

Kind regards,

You should look into state scripts. You can pause inside the scripts at certain points. Be aware of the script timeout though.

For more advanced usage, you can also look into the Update Management API, where the update can be controlled programmatically over DBus.