mail archive of the rauc mailing list
 help / color / mirror / Atom feed
* [RAUC] Rescue system
@ 2018-05-17 14:29 Kevin Golding
  2018-05-17 15:22 ` Enrico Joerns
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Golding @ 2018-05-17 14:29 UTC (permalink / raw)
  To: RAUC


[-- Attachment #1.1: Type: text/plain, Size: 378 bytes --]

Hello,

Am just getting my head around RAUC, and wondered if I'm right in 
thinking that a rescue system is not included with RAUC? i.e. I would 
need to find or create a small bootable rescue system that would run the 
RAUC update command say via say from a file on a USB stick?

If I am right, are there any examples of a rescue system available?

Regards,

-- 
Kevin Golding

[-- Attachment #1.2: Type: text/html, Size: 822 bytes --]

[-- Attachment #2: Type: text/plain, Size: 65 bytes --]

_______________________________________________
RAUC mailing list

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RAUC] Rescue system
  2018-05-17 14:29 [RAUC] Rescue system Kevin Golding
@ 2018-05-17 15:22 ` Enrico Joerns
  2018-05-17 22:12   ` Kevin Golding
  0 siblings, 1 reply; 3+ messages in thread
From: Enrico Joerns @ 2018-05-17 15:22 UTC (permalink / raw)
  To: Kevin Golding; +Cc: RAUC

Hi Kevin,

On 05/17/2018 04:29 PM, Kevin Golding wrote:
> Hello,
> 
> Am just getting my head around RAUC, and wondered if I'm right in thinking that a rescue system is not included with RAUC? i.e. I would need to find or create a small bootable rescue system that would run the RAUC update command say via say from a file on a USB stick?

conceptually RAUC is a generic update framework that can run on your Linux device and handle safe and atomic updates of partitions etc.
It does neither provide any ready-to-use distribution nor depend on any specific.

Thus building a system is always a task that should be solved outside of an update tool. With OE/Yocto, PTXdist and buildroot good build system exists for this that allow you to generate well defined customized systems in versioned and reproducible manner.

RAUC also does not depend on any specific source for its update artifacts. Neither on the production system nor on any rescue system. You can fetch your update from USB / network / storage media or whatever fits your concept or platform.

Nevertheless, conceptually a rescue system is surely supported. A slot configuration for your rescue system (and the default ones, too) would look like

   [slot.rootfs.0]
   device=/dev/mmcblk0p1
   ...

   [slot.rootfs.1]
   device=/dev/mmcblk0p1
   ...

   [slot.rescue.0]
   device=/dev/sda1
   ...


This would allow detecting RAUC that it is not running from one of the normal rootfs partitions but from the rescue partition instead and that it can safely upate the others.

> If I am right, are there any examples of a rescue system available?

No. A rescue system can be as small as only a minimal kernel+initramfs+dtb with RAUC binary + dependencies which will result in a few kB. Most of the build systems above provide a minimal rootfs configuration that you can simply extend with RAUC.

https://rauc.readthedocs.io/en/latest/integration.html


Did that roughly point you in the right direction?


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] Rescue system
  2018-05-17 15:22 ` Enrico Joerns
@ 2018-05-17 22:12   ` Kevin Golding
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Golding @ 2018-05-17 22:12 UTC (permalink / raw)
  To: Enrico Joerns; +Cc: RAUC


[-- Attachment #1.1: Type: text/plain, Size: 2544 bytes --]

Hello Enrico,

Thank you for your reply, and confirmation of my understanding. Due to 
limit storage space on our device, we need to use a small update/rescue 
OS and our much larger main OS. I expect our rescue/update OS may just 
be a script (to start with) to mount the USB drive and run rauc on a 
pre-set file name, maybe flashing some of our LEDS as it does its work!

Kevin Golding


On 17/05/2018 16:22, Enrico Joerns wrote:
> Hi Kevin,
>
> On 05/17/2018 04:29 PM, Kevin Golding wrote:
>> Hello,
>>
>> Am just getting my head around RAUC, and wondered if I'm right in 
>> thinking that a rescue system is not included with RAUC? i.e. I would 
>> need to find or create a small bootable rescue system that would run 
>> the RAUC update command say via say from a file on a USB stick?
>
> conceptually RAUC is a generic update framework that can run on your 
> Linux device and handle safe and atomic updates of partitions etc.
> It does neither provide any ready-to-use distribution nor depend on 
> any specific.
>
> Thus building a system is always a task that should be solved outside 
> of an update tool. With OE/Yocto, PTXdist and buildroot good build 
> system exists for this that allow you to generate well defined 
> customized systems in versioned and reproducible manner.
>
> RAUC also does not depend on any specific source for its update 
> artifacts. Neither on the production system nor on any rescue system. 
> You can fetch your update from USB / network / storage media or 
> whatever fits your concept or platform.
>
> Nevertheless, conceptually a rescue system is surely supported. A slot 
> configuration for your rescue system (and the default ones, too) would 
> look like
>
>   [slot.rootfs.0]
>   device=/dev/mmcblk0p1
>   ...
>
>   [slot.rootfs.1]
>   device=/dev/mmcblk0p1
>   ...
>
>   [slot.rescue.0]
>   device=/dev/sda1
>   ...
>
>
> This would allow detecting RAUC that it is not running from one of the 
> normal rootfs partitions but from the rescue partition instead and 
> that it can safely upate the others.
>
>> If I am right, are there any examples of a rescue system available?
>
> No. A rescue system can be as small as only a minimal 
> kernel+initramfs+dtb with RAUC binary + dependencies which will result 
> in a few kB. Most of the build systems above provide a minimal rootfs 
> configuration that you can simply extend with RAUC.
>
> https://rauc.readthedocs.io/en/latest/integration.html
>
>
> Did that roughly point you in the right direction?
>
>
> Best regards, Enrico
>
>


[-- Attachment #1.2: Type: text/html, Size: 4149 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-05-17 22:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-17 14:29 [RAUC] Rescue system Kevin Golding
2018-05-17 15:22 ` Enrico Joerns
2018-05-17 22:12   ` Kevin Golding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox