[isar-cip-core][RFC 0/5] SWUpdate abort on installing indentical image


Quirin Gylstorff
 

From: Quirin Gylstorff <quirin.gylstorff@...>

Use a pre/post function of the SWUpdate handler round robin to check if the given uuid
is already in the current root file system and abort if the uuid matches.

This fixes https://gitlab.com/cip-project/cip-core/isar-cip-core/-/issues/43

Quirin Gylstorff (5):
core/images/swupdate.inc: Move image_uuid to swupdate.inc
swupdate-handler-roundrobin: Increase revision
swupdate-handler-roundrobin: add uuidcheck patch
image_uuid: read target_image_uuid
recipe-core/images: Integrate uuidcheck into sw-description

classes/image_uuid.bbclass | 19 ++++++++
kas/opt/ebg-swu.yml | 2 +-
recipes-core/images/files/sw-description.tmpl | 1 +
recipes-core/images/image-uuid.inc | 12 ------
recipes-core/images/swupdate.inc | 6 ++-
...-add-uuidcheck-to-roundrobin-handler.patch | 43 +++++++++++++++++++
.../swupdate-handler-roundrobin_0.1.bb | 5 ++-
7 files changed, 73 insertions(+), 15 deletions(-)
delete mode 100644 recipes-core/images/image-uuid.inc
create mode 100644 recipes-core/swupdate-handler-roundrobin/files/0001-add-uuidcheck-to-roundrobin-handler.patch

--
2.35.1