cip-dev.lists.cip-project.org archive mirror
 help / color / mirror / Atom feed
From: Quirin Gylstorff <Quirin.Gylstorff@siemens.com>
To: cip-dev@lists.cip-project.org, felix.moessbauer@siemens.com,
	jan.kiszka@siemens.com
Subject: [cip-dev][isar-cip-core][PATCH v2 0/4] SWUpdate abort on installing indentical image
Date: Fri,  9 Dec 2022 15:58:23 +0100	[thread overview]
Message-ID: <20221209145827.1309521-1-Quirin.Gylstorff@siemens.com> (raw)

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

Changes in V2:
 - remove RFC
 - Use upstream version instead of patch
 - add comment for variable expension

Quirin Gylstorff (4):
  core/images/swupdate.inc: Move image_uuid to swupdate.inc
  swupdate-handler-roundrobin: Increase revision for configfilecheck
  image_uuid: read target_image_uuid
  recipe-core/images: Integrate configfilecheck 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 +++++-
 .../swupdate-handler-roundrobin_0.1.bb        |  2 +-
 6 files changed, 27 insertions(+), 15 deletions(-)
 delete mode 100644 recipes-core/images/image-uuid.inc

-- 
2.35.1



             reply	other threads:[~2022-12-09 14:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-09 14:58 Quirin Gylstorff [this message]
2022-12-09 14:58 ` [cip-dev][isar-cip-core][PATCH v2 1/4] core/images/swupdate.inc: Move image_uuid to swupdate.inc Quirin Gylstorff
2022-12-09 14:58 ` [cip-dev][isar-cip-core][PATCH v2 2/4] swupdate-handler-roundrobin: Increase revision for configfilecheck Quirin Gylstorff
2022-12-13 12:49   ` Jan Kiszka
2022-12-13 13:01     ` Jan Kiszka
2022-12-09 14:58 ` [cip-dev][isar-cip-core][PATCH v2 3/4] image_uuid: read target_image_uuid Quirin Gylstorff
2022-12-09 14:58 ` [cip-dev][isar-cip-core][PATCH v2 4/4] recipe-core/images: Integrate configfilecheck into sw-description Quirin Gylstorff
2022-12-13 13:01 ` [cip-dev][isar-cip-core][PATCH v2 0/4] SWUpdate abort on installing indentical image Jan Kiszka
2022-12-13 15:18   ` Regarding commit eb69c07eca22ffd8621d9de9378e4b3ce7965190 Biju Das
2022-12-13 15:34     ` Biju Das
2022-12-13 15:51       ` Pavel Machek
2022-12-13 16:06       ` Pavel Machek
2022-12-13 16:08         ` Biju Das

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221209145827.1309521-1-Quirin.Gylstorff@siemens.com \
    --to=quirin.gylstorff@siemens.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=felix.moessbauer@siemens.com \
    --cc=jan.kiszka@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).