* [PATCH 0/1] Ensure generation of /etc/os-release is idempotent
@ 2022-03-09 15:34 Felix Moessbauer
2022-03-09 15:34 ` [PATCH 1/1] " Felix Moessbauer
2022-03-21 15:00 ` [PATCH 0/1] " Anton Mikanovich
0 siblings, 2 replies; 4+ messages in thread
From: Felix Moessbauer @ 2022-03-09 15:34 UTC (permalink / raw)
To: isar-users; +Cc: henning.schild, Felix Moessbauer
Please note that this fix originally was part of the
"Improve handling of ISAR_RELEASE_CMD" series.
This series is no longer relevant (due to recent changes in what is sstate-cached).
Hence, I re-send this as a standalone patch, because this fix is still required.
Best regards,
Felix
Felix Moessbauer (1):
Ensure generation of /etc/os-release is idempotent
meta/classes/image-postproc-extension.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.30.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] Ensure generation of /etc/os-release is idempotent
2022-03-09 15:34 [PATCH 0/1] Ensure generation of /etc/os-release is idempotent Felix Moessbauer
@ 2022-03-09 15:34 ` Felix Moessbauer
2022-03-10 8:07 ` Henning Schild
2022-03-21 15:00 ` [PATCH 0/1] " Anton Mikanovich
1 sibling, 1 reply; 4+ messages in thread
From: Felix Moessbauer @ 2022-03-09 15:34 UTC (permalink / raw)
To: isar-users; +Cc: henning.schild, Felix Moessbauer
Prior to this patch, the generation of the os-release file
was not idempotent as there was a name-glitch in VARIAN_VERSION.
By that, the script did not detect an existing VARIANT_VERSION
and add one additional one per invocation.
Fixes: 78b24427a050 ("classes/image-postproc: Add image version")
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
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 3f00c21b..ca520273 100644
--- a/meta/classes/image-postproc-extension.bbclass
+++ b/meta/classes/image-postproc-extension.bbclass
@@ -27,7 +27,7 @@ update_etc_os_release() {
sudo tee -a '${IMAGE_ROOTFS}/etc/os-release'
fi
if [ -n "${OS_RELEASE_VARIANT_VERSION}" ]; then
- sudo sed -i '/^ISAR_IMAGE_VERSION=.*/d' '${IMAGE_ROOTFS}/etc/os-release'
+ sudo sed -i '/^VARIANT_VERSION=.*/d' '${IMAGE_ROOTFS}/etc/os-release'
echo "VARIANT_VERSION=\"${PV}\"" | \
sudo tee -a '${IMAGE_ROOTFS}/etc/os-release'
fi
--
2.30.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] Ensure generation of /etc/os-release is idempotent
2022-03-09 15:34 ` [PATCH 1/1] " Felix Moessbauer
@ 2022-03-10 8:07 ` Henning Schild
0 siblings, 0 replies; 4+ messages in thread
From: Henning Schild @ 2022-03-10 8:07 UTC (permalink / raw)
To: Felix Moessbauer; +Cc: isar-users
ACK
Am Wed, 9 Mar 2022 16:34:44 +0100
schrieb Felix Moessbauer <felix.moessbauer@siemens.com>:
> Prior to this patch, the generation of the os-release file
> was not idempotent as there was a name-glitch in VARIAN_VERSION.
> By that, the script did not detect an existing VARIANT_VERSION
> and add one additional one per invocation.
>
> Fixes: 78b24427a050 ("classes/image-postproc: Add image version")
>
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
> 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
> 3f00c21b..ca520273 100644 ---
> a/meta/classes/image-postproc-extension.bbclass +++
> b/meta/classes/image-postproc-extension.bbclass @@ -27,7 +27,7 @@
> update_etc_os_release() { sudo tee -a '${IMAGE_ROOTFS}/etc/os-release'
> fi
> if [ -n "${OS_RELEASE_VARIANT_VERSION}" ]; then
> - sudo sed -i '/^ISAR_IMAGE_VERSION=.*/d'
> '${IMAGE_ROOTFS}/etc/os-release'
> + sudo sed -i '/^VARIANT_VERSION=.*/d'
> '${IMAGE_ROOTFS}/etc/os-release' echo "VARIANT_VERSION=\"${PV}\"" | \
> sudo tee -a '${IMAGE_ROOTFS}/etc/os-release'
> fi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/1] Ensure generation of /etc/os-release is idempotent
2022-03-09 15:34 [PATCH 0/1] Ensure generation of /etc/os-release is idempotent Felix Moessbauer
2022-03-09 15:34 ` [PATCH 1/1] " Felix Moessbauer
@ 2022-03-21 15:00 ` Anton Mikanovich
1 sibling, 0 replies; 4+ messages in thread
From: Anton Mikanovich @ 2022-03-21 15:00 UTC (permalink / raw)
To: Felix Moessbauer, isar-users; +Cc: henning.schild
09.03.2022 18:34, Felix Moessbauer wrote:
> Please note that this fix originally was part of the
> "Improve handling of ISAR_RELEASE_CMD" series.
> This series is no longer relevant (due to recent changes in what is sstate-cached).
>
> Hence, I re-send this as a standalone patch, because this fix is still required.
>
> Best regards,
> Felix
>
> Felix Moessbauer (1):
> Ensure generation of /etc/os-release is idempotent
>
> meta/classes/image-postproc-extension.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied to next, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-03-21 15:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-09 15:34 [PATCH 0/1] Ensure generation of /etc/os-release is idempotent Felix Moessbauer
2022-03-09 15:34 ` [PATCH 1/1] " Felix Moessbauer
2022-03-10 8:07 ` Henning Schild
2022-03-21 15:00 ` [PATCH 0/1] " Anton Mikanovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox