From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 06 Dec 2024 10:25:24 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tJUaS-004gMc-1F for lore@lore.pengutronix.de; Fri, 06 Dec 2024 10:25:24 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tJUaS-0001Qv-Kg; Fri, 06 Dec 2024 10:25:24 +0100 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tJUaK-0001Ql-GR; Fri, 06 Dec 2024 10:25:16 +0100 Message-ID: <42177c2c425f7b240c65e41d6b6a4aac7b5b5ab1.camel@pengutronix.de> To: Brian Hutchinson , rauc@pengutronix.de Date: Fri, 06 Dec 2024 10:25:16 +0100 In-Reply-To: References: Organization: Pengutronix Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 Subject: Re: [RAUC] Is it possible to change the [system]compatible= string after it has already been set/flashed? X-BeenThere: rauc@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: RAUC Project - Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: =?utf-8?q?Jan_L=C3=BCbbe_via_RAUC?= Reply-To: jlu@pengutronix.de Sender: "RAUC" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: rauc-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Thu, 2024-12-05 at 22:38 -0500, Brian Hutchinson via RAUC wrote: > Hi, >=20 > Since it's common to produce boards with pre-programmed flash etc., is > it possible to change the [system]compatible=3D string when hardware > changes happen and the compatible string needs to be updated when it > has already been set previously? >=20 > 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. >=20 > 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. >=20 > 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.=20 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 th= e different images correctly. Regards, Jan [1] https://rauc.readthedocs.io/en/latest/using.html#install-hooks --=20 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 |