public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "'MOESSBAUER, Felix' via isar-users" <isar-users@googlegroups.com>
To: "isar-users@googlegroups.com" <isar-users@googlegroups.com>,
	"cedric.hombourger@siemens.com" <cedric.hombourger@siemens.com>
Subject: Re: [PATCH v4 0/4] non-privileged commands in chroot
Date: Thu, 25 Sep 2025 09:08:53 +0000	[thread overview]
Message-ID: <7726069416bb27b02244de47750ffeceb64bd6ca.camel@siemens.com> (raw)
In-Reply-To: <20250925065433.4180883-1-cedric.hombourger@siemens.com>

On Thu, 2025-09-25 at 08:54 +0200, 'Cedric Hombourger' via isar-users
wrote:
> When building root filesystems for foreign architectures with package source
> caching enabled, apt operations are executed within the rootfs through QEMU
> emulation. This results in significantly degraded performance, particularly
> when downloading source packages sequentially.
> 
> This patch series introduces a new wrapper function that enables native
> command execution against a rootfs while preserving special mount points
> (such as /isar-apt). The approach:
> 
> - Improves build performance for foreign architecture builds
> - Maintains filesystem isolation using bubblewrap
> - Preserves access to special mount points required by isar
> 
> Additional notes:
> - rootfs_cmd may be used to run commands from the host root file-system:
>   use with extreme care to avoid host contamination problems.
> - mmdebstrap already calls apt-get of the host to download packages (in
>   other words, a build of a bookworm image from a trixie host will
>   result in mmdebstrap (from trixie), call apt-get (from trixie) to
>   download bookworm packages. This is the behavior we have before and
>   after these changes.
> - With these changes and when caching of Debian source packages is
>   enabled/requested, Isar will use apt-get of the host to download
>   source packages (it will however do this from a bubblewrap'ed
>   environment to avoid a non-required privilege elevation; Isar has
>   many but we need to start from somewhere).
> 
> Testing:
> - Tested against 9e62337953fbb8371c846c44e8a99d62a8d220ba
> - Basic smoke tests performed successfully (citest.py -t fast)
> - Performance improvements observed in source package acquisition
> - Tested with various foreign architecture configurations

Thanks for bringing this up again. I successfully tested this series on
(amd64, arm64) x (bookworm, trixie).

Tested-by: Felix Moessbauer <felix.moessbauer@siemens.com>

Felix

-- 
Siemens AG
Linux Expert Center
Friedrich-Ludwig-Bauer-Str. 3
85748 Garching, Germany

-- 
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/7726069416bb27b02244de47750ffeceb64bd6ca.camel%40siemens.com.

      parent reply	other threads:[~2025-09-25  9:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-25  6:54 'Cedric Hombourger' via isar-users
2025-09-25  6:54 ` [PATCH v4 1/4] rootfs: introduce wrapper to run commands against a rootfs 'Cedric Hombourger' via isar-users
2025-10-01  7:21   ` Andreas Naumann
2025-09-25  6:54 ` [PATCH v4 2/4] deb-dl-dir: optimize caching of source packages using apt natively 'Cedric Hombourger' via isar-users
2025-09-25  9:07   ` 'MOESSBAUER, Felix' via isar-users
2025-09-25  6:54 ` [PATCH v4 3/4] bootstrap: create lock for downloads/deb without sudo 'Cedric Hombourger' via isar-users
2025-10-01  7:22   ` Andreas Naumann
2025-09-25  6:54 ` [PATCH v4 4/4] rootfs: do not get elevated privileges when downloading packages 'Cedric Hombourger' via isar-users
2025-09-25  9:08 ` 'MOESSBAUER, Felix' via isar-users [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7726069416bb27b02244de47750ffeceb64bd6ca.camel@siemens.com \
    --to=isar-users@googlegroups.com \
    --cc=cedric.hombourger@siemens.com \
    --cc=felix.moessbauer@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox