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 via email to