Aborting a deployment purposely stalled in the ArtifactReboot_Enter state

kadler
Wed, 08 Jun 2022 16:45:41 +0000
General Discussions

Hi all,

I’m looking to delay rootfs updates until the user power cycles their device. My approach is based on the Power loss section of the state scripts documentation.

Tip: Since a power loss in ArtifactReboot_Enter will not be marked as a failure, this enables the user to stall the daemon in ArtifactReboot_Enter state forever, and thus an install will only be installed on a power-cycle of the device.

I figured I’d create ArtifactReboot_Enter state script that either sleeps for days, or always returns 21 to retry later. This approach seems to work, but I noticed that if I abort the deployment from the Mender server, the Mender client continues executing the state script with either implementation.

Is there any way to get the Mender client to check on the status of, and abort, a deployment while waiting for the user to power cycle their device?

Thanks,
Kris

4 posts - 2 participants