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 using --conf option while using rauc
Date: Tue, 20 Nov 2018 11:47:46 +0100	[thread overview]
Message-ID: <bda28136-e204-0eff-e339-3391c71bbf55@pengutronix.de> (raw)
In-Reply-To: <CALYWmf8G5LMRAE5eYYpx3PnNRY3hpTHd3EEUnD9cjTuxhWcKPQ@mail.gmail.com>

Hi Abhishek,

On 11/20/18 11:15 AM, Abhishek Kumar Rai wrote:
> Hi Team,
> 
> I want to use my_system.conf for my customized system.conf setting while installing rauc bundle
> 
> {{{
> root:~# cat  /etc/rauc/system.conf
> [system]
> compatible=Eximius
> bootloader=uboot
> mountprefix=/mnt/rauc
> statusfile=/factory/rauc.status
> 
> [handlers]
> pre-install=/usr/bin/rauc-pre-install.sh
> post-install=/usr/bin/rauc-post-install.sh
> 
> [keyring]
> path=cert.pem
> 
> [slot.rootfs.0]
> device=/dev/disk/by-path/platform-219c000.usdhc-part1
> type=ext4
> bootname=A
> }}}
> 
> {{{
> root:~# cat my_system.conf
> [system]
> compatible=Eximius
> bootloader=uboot
> mountprefix=/mnt/rauc
> statusfile=/factory/rauc.status
> 
> [handlers]
> pre-install=/usr/bin/rauc-pre-install.sh
> post-install=/usr/bin/rauc-post-install.sh
> 
> [keyring]
> path=cert.pem
> 
> [slot.rootfs.0]
> device=/dev/disk/by-path/platform-219c000.usdhc-part1
> type=ext4
> bootname=A
> 
> [slot.rootfs.1]
> device=/dev/disk/by-path/platform-219c000.usdhc-part2
> type=ext4
> bootname=B
> }}}
> 
> The bundle present in below command(rauc_bundle.raucb) consist of rootfs.
> 
> $ rauc install --conf=my_system.conf  rauc_bundle.raucb
> 
> 
> Can i use the above command to do that. if yes can i give partition information also in my_system.conf .Or this is not possible .
> Please provide your views regarding this.

The `rauc install` calls the CLI in client mode.

However, the config is read and evaluated by the service.
Thus a `rauc install --config` ist meaningless for the service that performs the actual installation.

One exception is when compiling RAUC in non-service mode (without D-Bus).

What would work instead is stopping the rauc service and using

   rauc service --config ..

when restarting.


Could you point out your use case for using 2 different system.conf's here?

I bet there is a valid solution using only one system.conf.



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-11-20 10:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-20 10:15 Abhishek Kumar Rai
2018-11-20 10:47 ` Enrico Joerns [this message]
2018-11-20 13:52   ` Abhishek Kumar Rai

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=bda28136-e204-0eff-e339-3391c71bbf55@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