mail archive of the rauc mailing list
 help / color / mirror / Atom feed
From: Enrico Joerns <ejo@pengutronix.de>
To: Abhishek Kumar Rai <abhishekr@eximiusdesign.com>
Cc: rauc@pengutronix.de
Subject: Re: [RAUC] Regarding usage of hook
Date: Thu, 27 Sep 2018 08:46:24 +0200	[thread overview]
Message-ID: <1ce8a627-2b45-5536-011a-ebc9ad1861e9@pengutronix.de> (raw)
In-Reply-To: <CALYWmf_E2N9bebWaUSrK3iK+7wUwO0jQhhTsy45NNh_h0_7kTg@mail.gmail.com>

Hi Abhishek,

On 9/26/18 5:30 PM, Abhishek Kumar Rai wrote:
> Hi Enrico,
> Thanks for your prompt reply.
> 
> In my design , I have to do following things.
> 
> - Create a RAUC bundle consisting of App images and dbs -> ProductControl.bin, Controls.bin, Operations.bin, ProductControl.db, Controls.db, Operations.db etc. ->*Bundle.raucb*
> - On installation, both the images and db should go into AppFS. DataFS should remain unaffected.
> -“Post Install Hook” in RAUC shall be used to copy configuration data from the current slot of DataFS to the newly installed slot.
> 
> Can we achieve above scenario(with system.conf in previous mail) using “Post Install Hook” in manifest file. ?

note that ATM, there is only a per-slot post-install hook. But, we have a post per-installation post-install *handler*.
This means, the hook will be executed right after, e.g., your App image is copied and could be used to also write additional files you have in the bundle to the same slot (despite I would assume to have .db files in the datafs instead of appfs).

For copying DataFS content, you might want to join the discussion we have here:

https://github.com/rauc/rauc/issues/333

Maybe the discussion in https://github.com/rauc/rauc/issues/325 is also something that might be useful for your purposes.


Best regards, Enrico


-- 
Pengutronix e.K.                           | Enrico Jörns                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


_______________________________________________
RAUC mailing list

      reply	other threads:[~2018-09-27  6:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-26 11:59 Abhishek Kumar Rai
2018-09-26 14:22 ` Enrico Joerns
2018-09-26 15:30   ` Abhishek Kumar Rai
2018-09-27  6:46     ` Enrico Joerns [this message]

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=1ce8a627-2b45-5536-011a-ebc9ad1861e9@pengutronix.de \
    --to=ejo@pengutronix.de \
    --cc=abhishekr@eximiusdesign.com \
    --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