the supervisor target state is only patched if SCHEDULED_VERSION < CURRENT_VERSION but it is not patched if CURRENT_VERSION < SCHEDULED_VERSION < TARGET_VERSION
However this can cause issues as the scheduled version could be incompatible with the target OS
In the HUP script
https://github.com/balena-os/balenahup/blob/master/upgrade-2.x.sh#L387-L404
the supervisor target state is only patched if
SCHEDULED_VERSION < CURRENT_VERSION
but it is not patched ifCURRENT_VERSION < SCHEDULED_VERSION < TARGET_VERSION
However this can cause issues as the scheduled version could be incompatible with the target OS
See: https://balena.zendesk.com/agent/tickets/3772