Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Package to manage multiple buildroot filesystem "versions"?
@ 2021-08-25  7:08 Tudor Holton
  2021-08-25 22:31 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Tudor Holton @ 2021-08-25  7:08 UTC (permalink / raw)
  To: buildroot

Hi all,

I understand that buildroot is for building root filesystems and not 
really outside that, but...

Is there a package that can manage the partition layout, and buildroot 
filesystem "versions", for upgrade and fallback?

For example, something like:

1) During build, allocate space for 2 or more partitions, the first 
partition is the running buildroot filesystem
2) When the buildroot filesystem is running, download a newer version of 
the filesystem, verify it, and dd it to the second partition
3) Tell grub/EFI to boot the newer partition and reboot
BUT
4a) It doesn't complete the startup for some reason (like there's a 
kernel panic, or something doesn't start properly triggering the 
watchdog)
SO
5a) It reboots again, calling the previous version (e.g. using grub 
fallback or fallback.efi)
OR
4b) It does complete the startup, but some important service doesn't 
work (like it can't connect to the internet) so we presume we need to 
roll back
5B) It rolls back to the previous version with some kind of failure flag 
to tell the server that it failed the upgrade

I can see that this could be fairly easily written, but I was wondering 
if there was a buildroot package or environment that does this kind of 
behaviour already?

Cheers,
Tudor.
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-08-25 22:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-25  7:08 [Buildroot] Package to manage multiple buildroot filesystem "versions"? Tudor Holton
2021-08-25 22:31 ` Thomas Petazzoni

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