From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 14 Jan 2025 16:38:46 +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 1tXj09-0014NB-39 for lore@lore.pengutronix.de; Tue, 14 Jan 2025 16:38:46 +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 1tXj09-0003xh-IK; Tue, 14 Jan 2025 16:38:45 +0100 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1tXizx-0003wg-0l; Tue, 14 Jan 2025 16:38:33 +0100 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2156e078563so84259555ad.2; Tue, 14 Jan 2025 07:38:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736869111; x=1737473911; darn=pengutronix.de; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TGIKTEh8fQx/w6QLMhmWns1r2l9Vjalz26gzmaWkw2g=; b=Ack6mf3BjjntUpvRVXu7Rax0jdCKfN8f4Qzk0hTyuehMYTzV8qvmk9O7zOYIF7qLp4 JM7R9RgbElZomHVaCrVtb0hZlRzJRt1vkO9V9vktR9jooyenD0Xghrl2V+eDYuoYcdP1 +7+UFsxDR2d2N6HIP/dywiUEOFJiPLeF4iA5jo4qJisHwyft+QEt1Zr3r5lfW57s/ajT H1jaQJ2ndSy2Zwsykn9kU6t8VRm4ZL2jZu3YjX5nXQ8M6uj+QAfH3APmkC5smHeJun2S qkQf0HoHDYGxEt1WjTfWru4SoHQNHMd1I2sGCvRYqDeWIcQXPqiJtHnCF52ROvvL2gHb dZBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736869111; x=1737473911; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TGIKTEh8fQx/w6QLMhmWns1r2l9Vjalz26gzmaWkw2g=; b=ISUFU1+49Q+WXrnjglzzRiqscPAC9prMUPKIilaAbxkENfDXYdl75XCpG3mbKFCvqn /qrwJ2MRRTUx/bweEoBFCMCGBXf3j/q7FnelmhOExZN5yUY53wjvbNT1Anooid1TRNRL 0SlHDuk+1oFMoWufAZ9fYHlUEuPfaQX7WosiNhzt9l3Zb972PZr2+ehQHBfTramjNI6t WWwzdIHlpmFVWMZ6Q9f9TatuHbC+KvpXWZjajoX6AA31jBsHvXJGD7WwvXXRXFqfXFK5 11qk1yFlbChT2okCOKLVYuM8JsNlfWWOuHoheTGYLT+n93uJ0EgVeku73vQMSOO/P/2x 50ug== X-Gm-Message-State: AOJu0YxsaDmY9F3TAj0M8jfQ05vTlmi7C5pTr4teKwOxDtDzbzvgw8vp QuWz3CCHP5d8lVddfvoBWGjj1ezqmoAiBFT5dCC1U4XXkhzhk8f4pbgwQan+SfuWBsM7/lznRjV VsWkSHjsEwc53KeRsXiREZVXrng0esQ== X-Gm-Gg: ASbGncvJRJa/m/ltmvSf4l5PyN+6qhjiD13sj8OR6cnG7Jyit6dnPh2TA/xcmY811/C JtOq0/oIzyx9ckBAR/q5aLa1nr2tZXy2nx2ZI9Zc= X-Google-Smtp-Source: AGHT+IFrv2vh6hKf0rWby42znIdjo8vVDcF7PIRiThEaJpaAkekBBcaB5Q9pfiEZ97Nig+eBaqLjUM2tG64Al1ZPDHc= X-Received: by 2002:a17:902:e74b:b0:216:725c:a122 with SMTP id d9443c01a7336-21a83f4c07cmr328631095ad.19.1736869110617; Tue, 14 Jan 2025 07:38:30 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 14 Jan 2025 10:38:19 -0500 X-Gm-Features: AbW1kvZimdjfs97AGnf8Qp0MkGNWKQgM_LBmOw48_RTDkmjRIWZKDjgncrR0uDg Message-ID: To: =?UTF-8?Q?Jan_L=C3=BCbbe?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.4 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 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: Brian Hutchinson via RAUC Reply-To: Brian Hutchinson Cc: rauc@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 Mon, Dec 9, 2024 at 3:43=E2=80=AFAM Jan L=C3=BCbbe = wrote: > > 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-com= patibility Thanks! I should probably start another thread, but now I'm running into a chicken & egg problem. I need to add downgrade protection due to newer hardware and I discovered pre-install handler doesn't have access to bundle version (RAUC_MF_VERSION), only a hook has that environment variable. Well, if I create a hook that can compare bundle version to current version to do some hardware checks ... that hook won't be in older bundles, so wondering how pre-install handler (which lives in the current version file system) can figure out the bundle version attempting to be installed if it can't see RAUC_MF_VERSION to implement downgrade protection if that makes any sense. Regards, Brian