mail archive of the rauc mailing list
 help / color / mirror / Atom feed
From: Martin Hollingsworth <Martin.Hollingsworth@itk-engineering.de>
To: "rauc@pengutronix.de" <rauc@pengutronix.de>
Subject: [RAUC] Installation aborts on failure to write central slot status file
Date: Tue, 19 Jan 2021 09:59:44 +0000	[thread overview]
Message-ID: <00aff35a4234422197310257bb0c3239@itk-engineering.de> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1360 bytes --]

Hallo Community,
When RAUC runs an installation but cannot write the central slot status file, for example because the configured storage path is not
available, the installation aborts with an error. As I understand the documentation the slot status file is optional and only used
to prevent installing the same slot again, RAUC will still work without the slot status file. 

I would like to discuss - for the sake of a reliable software update - if it would be beneficial NOT to abort the update with an
error code if the central status file cannot be created. What would be the side effects of doing so from the perspective of RAUC?

My example setup:
My system stores the central status file on a different storage device as where the slots are placed. If this device mount fails,
the status file path points to the read-only rootFS. Hence RAUC will report an error during the next installation run:
---
Installation error: Error while writing status file: Failed to create file ?/update/status.raucs.2SHRX0?: Read-only file system
---
The system is designed to run without the additional storage device (be it with limited functionality of the main application).
Hence, I would like to design the software update to run even if that storage device is missing. My current solution is to use the
per slot status file.

With greetings,
Martin Hollingsworth


[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 7279 bytes --]

[-- Attachment #2: Type: text/plain, Size: 66 bytes --]

_______________________________________________
RAUC mailing list

                 reply	other threads:[~2021-01-19  9:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=00aff35a4234422197310257bb0c3239@itk-engineering.de \
    --to=martin.hollingsworth@itk-engineering.de \
    --cc=rauc@pengutronix.de \
    /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