This change:
1) Allow a patch to be applied on top of an unavailable patch
2) Does not allow the system to go back to an unavailable patch
3) Does not raise obsolete alarm for unavailable patches in the
current major release
4) After applying a patch on top of an unavailable patch, remove all
the unavailable patches
5) Add the prepatched_iso and remove the requires tags from the lowest
sysroot deployed patch
Test-Plan:
PASS: If a patch from the current major release is unavailable,
does not raise the obsolete release alarm
PASS: Apply a patch on top of an unavailable patch
- Check the deployment entity is correct
- Check the ostree commit is correct
- Check the unavailable patch was deleted
- Check the lowest applied patch contains the prepatched_iso
and no requires tags in the metadata
PASS: Should not allow removing a patch on top of an unavailable patch
PASS: Should not allow removal of an unavailable patch
PASS: Upgrade from 22.12 to 24.09.300 (with changes)
Closes-Bug: 2119980
Change-Id: Iaf83a55af4c33a9d38eb569c7d614662d60d7a36
Signed-off-by: Lindley Vieira <lindley.vieira@windriver.com>