* [RAUC] Regarding using --conf option while using rauc
@ 2018-11-20 10:15 Abhishek Kumar Rai
2018-11-20 10:47 ` Enrico Joerns
0 siblings, 1 reply; 3+ messages in thread
From: Abhishek Kumar Rai @ 2018-11-20 10:15 UTC (permalink / raw)
To: rauc
[-- Attachment #1.1: Type: text/plain, Size: 2477 bytes --]
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.
Regards,
Abhishek Rai
--
The information contained in this e-mail message (including
any
attachments) may be confidential, proprietary, privileged, or
otherwise
exempt from disclosure under applicable laws. It is intended to
be
conveyed only to the designated recipient(s). Any use, dissemination,
distribution, printing, retaining or copying of this e-mail (including
its
attachments) by unintended recipient(s) is strictly prohibited and
may
be unlawful. If you are not an intended recipient of this e-mail, or
believe
that you have received this e-mail in error, please notify the
sender
immediately (by replying to this e-mail), delete any and all
copies of
this e-mail (including any attachments) from your system, and
do not
disclose the content of this e-mail to any other person. Thank you
for your cooperation.
--
_This e-mail message (including any attachments) may be confidential,
proprietary, privileged, or otherwise exempt from disclosure under
applicable laws. If you are not an intended recipient, please delete this
message. Thank you.
_
[-- Attachment #1.2: Type: text/html, Size: 3479 bytes --]
[-- Attachment #2: Type: text/plain, Size: 65 bytes --]
_______________________________________________
RAUC mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RAUC] Regarding using --conf option while using rauc
2018-11-20 10:15 [RAUC] Regarding using --conf option while using rauc Abhishek Kumar Rai
@ 2018-11-20 10:47 ` Enrico Joerns
2018-11-20 13:52 ` Abhishek Kumar Rai
0 siblings, 1 reply; 3+ messages in thread
From: Enrico Joerns @ 2018-11-20 10:47 UTC (permalink / raw)
To: Abhishek Kumar Rai; +Cc: rauc
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RAUC] Regarding using --conf option while using rauc
2018-11-20 10:47 ` Enrico Joerns
@ 2018-11-20 13:52 ` Abhishek Kumar Rai
0 siblings, 0 replies; 3+ messages in thread
From: Abhishek Kumar Rai @ 2018-11-20 13:52 UTC (permalink / raw)
To: Enrico Joerns; +Cc: rauc
[-- Attachment #1.1: Type: text/plain, Size: 3879 bytes --]
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 <ejo@pengutronix.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 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 |
>
>
--
The information contained in this e-mail message (including
any
attachments) may be confidential, proprietary, privileged, or
otherwise
exempt from disclosure under applicable laws. It is intended to
be
conveyed only to the designated recipient(s). Any use, dissemination,
distribution, printing, retaining or copying of this e-mail (including
its
attachments) by unintended recipient(s) is strictly prohibited and
may
be unlawful. If you are not an intended recipient of this e-mail, or
believe
that you have received this e-mail in error, please notify the
sender
immediately (by replying to this e-mail), delete any and all
copies of
this e-mail (including any attachments) from your system, and
do not
disclose the content of this e-mail to any other person. Thank you
for your cooperation.
--
_This e-mail message (including any attachments) may be confidential,
proprietary, privileged, or otherwise exempt from disclosure under
applicable laws. If you are not an intended recipient, please delete this
message. Thank you.
_
[-- Attachment #1.2: Type: text/html, Size: 5144 bytes --]
[-- Attachment #2: Type: text/plain, Size: 65 bytes --]
_______________________________________________
RAUC mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-11-20 13:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-20 10:15 [RAUC] Regarding using --conf option while using rauc Abhishek Kumar Rai
2018-11-20 10:47 ` Enrico Joerns
2018-11-20 13:52 ` Abhishek Kumar Rai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox