public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] classes/image-postproc: Fix unchangeable VARIAN_VERSION value
@ 2025-04-26 11:42 Anton Mikanovich
  2025-04-27 17:46 ` 'Jan Kiszka' via isar-users
  0 siblings, 1 reply; 3+ messages in thread
From: Anton Mikanovich @ 2025-04-26 11:42 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

During custom /etc/os-release generation in update_etc_os_release()
VARIAN_VERSION was set to PV without taking in account --version option
provided from outside.

Fixes: 78b24427a050 ("classes/image-postproc: Add image version")

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta/classes/image-postproc-extension.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/image-postproc-extension.bbclass b/meta/classes/image-postproc-extension.bbclass
index f7f762c4..991bac4c 100644
--- a/meta/classes/image-postproc-extension.bbclass
+++ b/meta/classes/image-postproc-extension.bbclass
@@ -28,7 +28,7 @@ update_etc_os_release() {
     fi
     if [ -n "${OS_RELEASE_VARIANT_VERSION}" ]; then
         sudo sed -i '/^VARIANT_VERSION=.*/d' '${IMAGE_ROOTFS}/etc/os-release'
-        echo "VARIANT_VERSION=\"${PV}\"" | \
+        echo "VARIANT_VERSION=\"${OS_RELEASE_VARIANT_VERSION}\"" | \
             sudo tee -a '${IMAGE_ROOTFS}/etc/os-release'
     fi
 }
-- 
2.34.1

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20250426114211.69284-1-amikan%40ilbers.de.

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

end of thread, other threads:[~2025-04-28  6:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-26 11:42 [PATCH] classes/image-postproc: Fix unchangeable VARIAN_VERSION value Anton Mikanovich
2025-04-27 17:46 ` 'Jan Kiszka' via isar-users
2025-04-28  6:11   ` Anton Mikanovich

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