All of lore.kernel.org
 help / color / mirror / Atom feed
* [cip-dev][isar-cip-core][RFC 0/5] SWUpdate abort on installing indentical image
@ 2022-11-10 12:44 Quirin Gylstorff
  2022-11-10 12:44 ` [cip-dev][isar-cip-core][RFC 1/5] core/images/swupdate.inc: Move image_uuid to swupdate.inc Quirin Gylstorff
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Quirin Gylstorff @ 2022-11-10 12:44 UTC (permalink / raw)
  To: cip-dev, jan.kiszka, felix.moessbauer, christian.storm

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

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



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-11-10 14:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 12:44 [cip-dev][isar-cip-core][RFC 0/5] SWUpdate abort on installing indentical image Quirin Gylstorff
2022-11-10 12:44 ` [cip-dev][isar-cip-core][RFC 1/5] core/images/swupdate.inc: Move image_uuid to swupdate.inc Quirin Gylstorff
2022-11-10 12:45 ` [cip-dev][isar-cip-core][RFC 2/5] swupdate-handler-roundrobin: Increase revision Quirin Gylstorff
2022-11-10 13:50   ` Jan Kiszka
2022-11-10 12:45 ` [cip-dev][isar-cip-core][RFC 3/5] swupdate-handler-roundrobin: add uuidcheck patch Quirin Gylstorff
2022-11-10 13:52   ` Jan Kiszka
2022-11-10 14:05     ` Gylstorff Quirin
2022-11-10 12:45 ` [cip-dev][isar-cip-core][RFC 4/5] image_uuid: read target_image_uuid Quirin Gylstorff
2022-11-10 13:56   ` Jan Kiszka
2022-11-10 14:09     ` Gylstorff Quirin
2022-11-10 12:45 ` [cip-dev][isar-cip-core][RFC 5/5] recipe-core/images: Integrate uuidcheck into sw-description Quirin Gylstorff
2022-11-10 13:58   ` Jan Kiszka
2022-11-10 14:10     ` Gylstorff Quirin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.