mail archive of the rauc mailing list
 help / color / mirror / Atom feed
* [RAUC] Is it possible to change the [system]compatible= string after it has already been set/flashed?
@ 2024-12-06  3:38 Brian Hutchinson via RAUC
  2024-12-06  9:25 ` Jan Lübbe via RAUC
  2024-12-09  8:43 ` Jan Lübbe via RAUC
  0 siblings, 2 replies; 3+ messages in thread
From: Brian Hutchinson via RAUC @ 2024-12-06  3:38 UTC (permalink / raw)
  To: rauc

Hi,

Since it's common to produce boards with pre-programmed flash etc., is
it possible to change the [system]compatible= string when hardware
changes happen and the compatible string needs to be updated when it
has already been set previously?

I know that hooks could be used to key in on bundle version
information to implement things like downgrade barriers etc., but it
just feels more elegant to update the compatible string to describe
hardware changes that are human readable than to keep up with a eye
chart truth table of version number combinations to determine what is
safe to downgrade, upgrade etc.

I was thinking if maybe [system]variant-file was used in system.conf,
then a pre-install hook could easily manipulate the compatible string,
but not sure that would work.

This almost feels like the intermediate update that's necessary with
changing rauc versions ... but I searched the mail archives and
couldn't find anyone wondering about this sort of thing so thought I'd
ask Jan, Enrico & Co. their thoughts.

Regards,

Brian



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

* Re: [RAUC] Is it possible to change the [system]compatible= string after it has already been set/flashed?
  2024-12-06  3:38 [RAUC] Is it possible to change the [system]compatible= string after it has already been set/flashed? Brian Hutchinson via RAUC
@ 2024-12-06  9:25 ` Jan Lübbe via RAUC
  2024-12-09  8:43 ` Jan Lübbe via RAUC
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Lübbe via RAUC @ 2024-12-06  9:25 UTC (permalink / raw)
  To: Brian Hutchinson, rauc

On Thu, 2024-12-05 at 22:38 -0500, Brian Hutchinson via RAUC wrote:
> Hi,
> 
> Since it's common to produce boards with pre-programmed flash etc., is
> it possible to change the [system]compatible= string when hardware
> changes happen and the compatible string needs to be updated when it
> has already been set previously?
> 
> I know that hooks could be used to key in on bundle version
> information to implement things like downgrade barriers etc., but it
> just feels more elegant to update the compatible string to describe
> hardware changes that are human readable than to keep up with a eye
> chart truth table of version number combinations to determine what is
> safe to downgrade, upgrade etc.
> 
> I was thinking if maybe [system]variant-file was used in system.conf,
> then a pre-install hook could easily manipulate the compatible string,
> but not sure that would work.
> 
> This almost feels like the intermediate update that's necessary with
> changing rauc versions ... but I searched the mail archives and
> couldn't find anyone wondering about this sort of thing so thought I'd
> ask Jan, Enrico & Co. their thoughts.

You can use a 'install-check' hook [1] in the bundle to override the normal
compatible check. 

Also, the variant handling is built in a way so that you can start setting the
system variant in new systems that behave differently and you can target the
different images correctly.

Regards,
Jan

[1] https://rauc.readthedocs.io/en/latest/using.html#install-hooks

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



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

* Re: [RAUC] Is it possible to change the [system]compatible= string after it has already been set/flashed?
  2024-12-06  3:38 [RAUC] Is it possible to change the [system]compatible= string after it has already been set/flashed? Brian Hutchinson via RAUC
  2024-12-06  9:25 ` Jan Lübbe via RAUC
@ 2024-12-09  8:43 ` Jan Lübbe via RAUC
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Lübbe via RAUC @ 2024-12-09  8:43 UTC (permalink / raw)
  To: Brian Hutchinson, rauc

Hi again,

On Thu, 2024-12-05 at 22:38 -0500, Brian Hutchinson via RAUC wrote:
> This almost feels like the intermediate update that's necessary with
> changing rauc versions ...

Enrico pointed me to this part.

Updating RAUC versions normally does *not* require an intermediate
update. An intermediate update is only needed if you explicitly create
bundles which use new features:
https://rauc.readthedocs.io/en/latest/basic.html#forward-and-backward-compatibility

Regards,
Jan
-- 
Pengutronix e.K.                        |                             |
Steuerwalder Str. 21                    | https://www.pengutronix.de/ |
31137 Hildesheim, Germany               | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686        | Fax:   +49-5121-206917-5555 |





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

end of thread, other threads:[~2024-12-09  8:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-06  3:38 [RAUC] Is it possible to change the [system]compatible= string after it has already been set/flashed? Brian Hutchinson via RAUC
2024-12-06  9:25 ` Jan Lübbe via RAUC
2024-12-09  8:43 ` Jan Lübbe via RAUC

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