From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-it1-x133.google.com ([2607:f8b0:4864:20::133]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1gP6S1-0004nW-PM for rauc@pengutronix.de; Tue, 20 Nov 2018 14:52:26 +0100 Received: by mail-it1-x133.google.com with SMTP id g85so3386331ita.3 for ; Tue, 20 Nov 2018 05:52:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Abhishek Kumar Rai Date: Tue, 20 Nov 2018 19:22:12 +0530 Message-ID: Subject: Re: [RAUC] Regarding using --conf option while using rauc List-Id: RAUC Project - Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0937522985==" Errors-To: rauc-bounces@pengutronix.de Sender: "RAUC" To: Enrico Joerns Cc: rauc@pengutronix.de --===============0937522985== Content-Type: multipart/alternative; boundary="00000000000075851f057b18f1bb" --00000000000075851f057b18f1bb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Enrico, Thanks for your prompt reply. I will look in to it and will come back to you . Regards, Abhishek On Tue, Nov 20, 2018, 4:17 PM Enrico Joerns 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 whil= e > installing rauc bundle > > > > {{{ > > root:~# cat /etc/rauc/system.conf > > [system] > > compatible=3DEximius > > bootloader=3Duboot > > mountprefix=3D/mnt/rauc > > statusfile=3D/factory/rauc.status > > > > [handlers] > > pre-install=3D/usr/bin/rauc-pre-install.sh > > post-install=3D/usr/bin/rauc-post-install.sh > > > > [keyring] > > path=3Dcert.pem > > > > [slot.rootfs.0] > > device=3D/dev/disk/by-path/platform-219c000.usdhc-part1 > > type=3Dext4 > > bootname=3DA > > }}} > > > > {{{ > > root:~# cat my_system.conf > > [system] > > compatible=3DEximius > > bootloader=3Duboot > > mountprefix=3D/mnt/rauc > > statusfile=3D/factory/rauc.status > > > > [handlers] > > pre-install=3D/usr/bin/rauc-pre-install.sh > > post-install=3D/usr/bin/rauc-post-install.sh > > > > [keyring] > > path=3Dcert.pem > > > > [slot.rootfs.0] > > device=3D/dev/disk/by-path/platform-219c000.usdhc-part1 > > type=3Dext4 > > bootname=3DA > > > > [slot.rootfs.1] > > device=3D/dev/disk/by-path/platform-219c000.usdhc-part2 > > type=3Dext4 > > bootname=3DB > > }}} > > > > The bundle present in below command(rauc_bundle.raucb) consist of rootf= s. > > > > $ rauc install --conf=3Dmy_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 her= e? > > I bet there is a valid solution using only one system.conf. > > > > Best regards, Enrico > > -- > Pengutronix e.K. | Enrico J=C3=B6rns = | > 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 = | > > --=20 The information contained in this e-mail message (including=20 any=C2=A0 attachments) may be confidential, proprietary, privileged, or=20 otherwise exempt from disclosure under applicable laws. It is intended to=20 be=C2=A0 conveyed only to the designated recipient(s). Any use, dissemination,=C2=A0 distribution, printing, retaining or copying of this e-mail (including=20 its=C2=A0 attachments) by unintended recipient(s) is strictly prohibited and=20 may=C2=A0 be unlawful. If you are not an intended recipient of this e-mail, or=20 believe=C2=A0 that you have received this e-mail in error, please notify the=20 sender=C2=A0 immediately (by replying to this e-mail), delete any and all=20 copies of=C2=A0 this e-mail (including any attachments) from your system, and=20 do not disclose the content of this e-mail to any other person. Thank you=20 for your cooperation. --=20 _This e-mail message (including any=C2=A0attachments) may be confidential,= =20 proprietary, privileged, or otherwise=C2=A0exempt from disclosure under=20 applicable laws. If you are not an intended recipient, please delete this= =20 message. Thank you. _ --00000000000075851f057b18f1bb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Enrico,

T= hanks for your prompt reply.

I will look in to it and will come back to you .

Regards,
Abhishek

On Tue, Nov 20, 2018= , 4:17 PM Enrico Joerns <ejo@pengu= tronix.de wrote:
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 whi= le installing rauc bundle
>
> {{{
> root:~# cat=C2=A0 /etc/rauc/system.conf
> [system]
> compatible=3DEximius
> bootloader=3Duboot
> mountprefix=3D/mnt/rauc
> statusfile=3D/factory/rauc.status
>
> [handlers]
> pre-install=3D/usr/bin/rauc-pre-install.sh
> post-install=3D/usr/bin/rauc-post-install.sh
>
> [keyring]
> path=3Dcert.pem
>
> [slot.rootfs.0]
> device=3D/dev/disk/by-path/platform-219c000.usdhc-part1
> type=3Dext4
> bootname=3DA
> }}}
>
> {{{
> root:~# cat my_system.conf
> [system]
> compatible=3DEximius
> bootloader=3Duboot
> mountprefix=3D/mnt/rauc
> statusfile=3D/factory/rauc.status
>
> [handlers]
> pre-install=3D/usr/bin/rauc-pre-install.sh
> post-install=3D/usr/bin/rauc-post-install.sh
>
> [keyring]
> path=3Dcert.pem
>
> [slot.rootfs.0]
> device=3D/dev/disk/by-path/platform-219c000.usdhc-part1
> type=3Dext4
> bootname=3DA
>
> [slot.rootfs.1]
> device=3D/dev/disk/by-path/platform-219c000.usdhc-part2
> type=3Dext4
> bootname=3DB
> }}}
>
> The bundle present in below command(rauc_bundle.raucb) consist of root= fs.
>
> $ rauc install --conf=3Dmy_system.conf=C2=A0 rauc_bundle.raucb
>
>
> Can i use the above command to do that. if yes can i give partition in= formation 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 perform= s 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

=C2=A0 =C2=A0rauc service --config ..

when restarting.


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

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



Best regards, Enrico

--
Pengutronix e.K.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| Enrico J=C3=B6rns=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
Industrial Linux Solutions=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0| http://www.pengutronix.de/=C2=A0 |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |<= br> Amtsgericht Hildesheim, HRA 2686=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| = Fax:=C2=A0 =C2=A0+49-5121-206917-5555 |


The information contained in this e-mail message (including any=C2= =A0

attachments) may be confidential, proprietary, privileged, or othe= rwise

exempt from disclosure under applicable laws. It is intended to be= =C2=A0

conveyed only to the designated recipient(s). Any use, disseminati= on,=C2=A0

distribution, printing, retaining or copying of this e-mail (inclu= ding its=C2=A0

attachments) by unintended recipient(s) is strictly prohibited and= may=C2=A0

be unlawful. If you are not an intended recipient of this e-mail, = or believe=C2=A0

that you have received this e-mail in error, please notify the sen= der=C2=A0

immediately (by replying to this e-mail), delete any and all copie= s of=C2=A0

this e-mail (including any attachments) from your system, and do n= ot

disclose the content of this e-mail to any other person. Thank you= for your cooperation.


This e-mail message (including any=C2=A0attachments) may be= confidential, proprietary, privileged, or otherwise=C2=A0exempt from discl= osure under applicable laws. If you are not an intended recipient, please d= elete this message. Thank you.
--00000000000075851f057b18f1bb-- --===============0937522985== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KUkFVQyBtYWls aW5nIGxpc3Q= --===============0937522985==--