public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 1/1] sdk: remove isar-apt before running configscript
@ 2026-09-09  6:39 'Felix Moessbauer' via isar-users
  2026-09-15  9:01 ` Zhihang Wei
  0 siblings, 1 reply; 2+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2026-09-09  6:39 UTC (permalink / raw)
  To: isar-users; +Cc: Felix Moessbauer

When using SDK_INCLUDE_ISAR_APT=0, the generated rootfs should not
include any traces of the isar-apt. However, as the config script runs
prior to the cleanup of the isar-apt, the apt-get update still has the
apt source list reference and leaks data into the sdk.

We fix this by explicitly dropping the isar-apt prior to running the
configure script.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 meta/classes-recipe/sdk.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes-recipe/sdk.bbclass b/meta/classes-recipe/sdk.bbclass
index ca38cfc3..543df84b 100644
--- a/meta/classes-recipe/sdk.bbclass
+++ b/meta/classes-recipe/sdk.bbclass
@@ -81,6 +81,7 @@ sdkchroot_configscript () {
         chroot ${ROOTFSDIR} /configscript.sh ${DISTRO_ARCH}
 EOF
 }
+ROOTFS_POSTPROCESS_COMMAND:prepend:class-sdk = "${@'' if bb.utils.to_boolean(d.getVar('SDK_INCLUDE_ISAR_APT')) else 'rootfs_cleanup_isar_apt'} "
 
 ROOTFS_POSTPROCESS_COMMAND:append:class-sdk = " sdkchroot_finalize"
 sdkchroot_finalize() {
-- 
2.55.0

-- 
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/20260909063908.1292693-1-felix.moessbauer%40siemens.com.

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

* Re: [PATCH 1/1] sdk: remove isar-apt before running configscript
  2026-09-09  6:39 [PATCH 1/1] sdk: remove isar-apt before running configscript 'Felix Moessbauer' via isar-users
@ 2026-09-15  9:01 ` Zhihang Wei
  0 siblings, 0 replies; 2+ messages in thread
From: Zhihang Wei @ 2026-09-15  9:01 UTC (permalink / raw)
  To: Felix Moessbauer, isar-users

Applied to next, thanks.

Zhihang

On 9/9/26 08:39, 'Felix Moessbauer' via isar-users wrote:
> When using SDK_INCLUDE_ISAR_APT=0, the generated rootfs should not
> include any traces of the isar-apt. However, as the config script runs
> prior to the cleanup of the isar-apt, the apt-get update still has the
> apt source list reference and leaks data into the sdk.
>
> We fix this by explicitly dropping the isar-apt prior to running the
> configure script.
>
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
>   meta/classes-recipe/sdk.bbclass | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/meta/classes-recipe/sdk.bbclass b/meta/classes-recipe/sdk.bbclass
> index ca38cfc3..543df84b 100644
> --- a/meta/classes-recipe/sdk.bbclass
> +++ b/meta/classes-recipe/sdk.bbclass
> @@ -81,6 +81,7 @@ sdkchroot_configscript () {
>           chroot ${ROOTFSDIR} /configscript.sh ${DISTRO_ARCH}
>   EOF
>   }
> +ROOTFS_POSTPROCESS_COMMAND:prepend:class-sdk = "${@'' if bb.utils.to_boolean(d.getVar('SDK_INCLUDE_ISAR_APT')) else 'rootfs_cleanup_isar_apt'} "
>   
>   ROOTFS_POSTPROCESS_COMMAND:append:class-sdk = " sdkchroot_finalize"
>   sdkchroot_finalize() {

-- 
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/66eb70fd-2236-490c-a022-fdb31344e7d1%40ilbers.de.

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

end of thread, other threads:[~2026-09-15  9:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-09  6:39 [PATCH 1/1] sdk: remove isar-apt before running configscript 'Felix Moessbauer' via isar-users
2026-09-15  9:01 ` Zhihang Wei

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