During USM upgrade to stx-10, when the second controller
is upgraded, the active controller legacy patch controller
change from-release Applied patches to Partial-Apply state,
because the sysroot ostree commit-id changes on the second
controller and doesn't match the previous patches commits
anymore.
This commit restricts legacy patch API checks/changes to
hosts running stx-8 or less, where legacy patch API is valid.
On post stx-8 releases USM is the new patch API.
Test Plan
PASS: AIO-SX stx-8 -> stx-10 upgrade,
verify patch state is consistent
PASS: AIO-SX stx-10 -> stx-8 rollback,
verify patch state is consistent
PASS: STD, same as previous TCs
Closes-bug: 2093202
Change-Id: I1e79d354cafd9d6db12c6b1d0164bd4000137c23
Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>