public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 1/1] fix(apt-fetcher): drop isar apt entries before fetching on unshare
@ 2026-07-29 11:15 'Felix Moessbauer' via isar-users
  2026-07-31  8:34 ` Zhihang Wei
  0 siblings, 1 reply; 2+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2026-07-29 11:15 UTC (permalink / raw)
  To: isar-users; +Cc: Felix Moessbauer

The apt-fetcher must only fetch from upstream (but not from isar-apt),
as otherwise the altered files are ingressed on the next fetch. This is
already correctly implemented for the schroot backend, but was missed
for unshare.

Fixes: f2644cd7 ("apt-fetcher: implement support for unshare ...")
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 meta/lib/aptsrc_fetcher.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/lib/aptsrc_fetcher.py b/meta/lib/aptsrc_fetcher.py
index 49f12075..fe8f1cd3 100644
--- a/meta/lib/aptsrc_fetcher.py
+++ b/meta/lib/aptsrc_fetcher.py
@@ -108,6 +108,8 @@ class AptSrcUnshare(AptSrc):
     mkdir -p {rootfsdir}
     tar -xf {sbuild_chroot} -C {rootfsdir}
     cp /etc/resolv.conf {os.path.join(rootfsdir, 'etc/resolv.conf')}
+    rm -f {rootfsdir}/etc/apt/sources.list.d/isar-apt.list \
+          {rootfsdir}/etc/apt/preferences.d/isar-apt
 EOF
         ''', d)
         logger.info(f'rootfs extracted to: {rootfsdir}')
-- 
2.53.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/20260729111518.3667086-1-felix.moessbauer%40siemens.com.

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

* Re: [PATCH 1/1] fix(apt-fetcher): drop isar apt entries before fetching on unshare
  2026-07-29 11:15 [PATCH 1/1] fix(apt-fetcher): drop isar apt entries before fetching on unshare 'Felix Moessbauer' via isar-users
@ 2026-07-31  8:34 ` Zhihang Wei
  0 siblings, 0 replies; 2+ messages in thread
From: Zhihang Wei @ 2026-07-31  8:34 UTC (permalink / raw)
  To: Felix Moessbauer, isar-users

Applied to next, thanks.

Zhihang

On 7/29/26 13:15, 'Felix Moessbauer' via isar-users wrote:
> The apt-fetcher must only fetch from upstream (but not from isar-apt),
> as otherwise the altered files are ingressed on the next fetch. This is
> already correctly implemented for the schroot backend, but was missed
> for unshare.
>
> Fixes: f2644cd7 ("apt-fetcher: implement support for unshare ...")
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
>   meta/lib/aptsrc_fetcher.py | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/meta/lib/aptsrc_fetcher.py b/meta/lib/aptsrc_fetcher.py
> index 49f12075..fe8f1cd3 100644
> --- a/meta/lib/aptsrc_fetcher.py
> +++ b/meta/lib/aptsrc_fetcher.py
> @@ -108,6 +108,8 @@ class AptSrcUnshare(AptSrc):
>       mkdir -p {rootfsdir}
>       tar -xf {sbuild_chroot} -C {rootfsdir}
>       cp /etc/resolv.conf {os.path.join(rootfsdir, 'etc/resolv.conf')}
> +    rm -f {rootfsdir}/etc/apt/sources.list.d/isar-apt.list \
> +          {rootfsdir}/etc/apt/preferences.d/isar-apt
>   EOF
>           ''', d)
>           logger.info(f'rootfs extracted to: {rootfsdir}')

-- 
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/1817c348-ce12-4b98-94b9-13824c413220%40ilbers.de.

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

end of thread, other threads:[~2026-07-31  8:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-29 11:15 [PATCH 1/1] fix(apt-fetcher): drop isar apt entries before fetching on unshare 'Felix Moessbauer' via isar-users
2026-07-31  8:34 ` Zhihang Wei

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