From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 19 May 2025 15:33:42 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pl1-f189.google.com (mail-pl1-f189.google.com [209.85.214.189]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 54JDXedT018758 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 19 May 2025 15:33:41 +0200 Received: by mail-pl1-f189.google.com with SMTP id d9443c01a7336-23205cb56c0sf14047215ad.3 for ; Mon, 19 May 2025 06:33:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1747661614; cv=pass; d=google.com; s=arc-20240605; b=Iyfi0dGbUuj/N0UmX+qQeH1jC9GekQ6T8oZYNo8ppargu7jDG4t0DVTySdd3RcmNLC uatketa8woebJzIBywG1IG2J003opRsvvK/WGuyL+eDSn4N7se9dsWI/dKVFkqZl35u+ 2wVT+Y7R3i8uoZi4A9LrvKVVbzlJI5h5YrkJPS528QqJuWnte8jdrN68cYc0I99Yy2kn 08Howab8cq1MZaJAVWte3vq19h2igxqGD45Mz6vvFh22IJkI43VTadOdbAwGMtnIXgvn fsqAuml/kpMZqhfxZ+nG2cj6N/yXI+m9VpXMSdjLKMJl/OJOL11gzwG/iRdWeVcEjklV xX/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=OLN2TZBojca/yI1I8P0zQwTR3M1BfvMfCyauBxug/gI=; fh=ziFQUA5tTj73z2NlnuOml0TarohGmGa9NyE68Fy9Bsc=; b=LgnmhUFK1vso6wyd/bmabQln6RnFKzCog77JqGrpkZusAht1WQKo5Hldu5vBeEpBsB U0f57fySy6WekxUdM5qnYiFo5mYyukyg33owdOY3R1OgsVVfNxtpJzzbxO3br7Ni9CG1 Mj7Mh0VIjL9IEE5vovlBmKIIG4dgzoYZaYtl8u6BZLFt3z5upvNLzDPZ4fG/b2JOXHVS xugqgYOvjhFZdVYMxxS9CyBB7xZS+DSepjdH+2UMjA4CdcIyQkHhBKz9D4tcQwkk4LwL Cb0pirxEa2TvSUXigi3IQO4MZxUjICqSLQ4UIowhaat5EcoP8Xlm4/oXqqqTsTBdhfg6 ZtGg==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KYCA5cwN; spf=pass (google.com: domain of srinuvasanasv@gmail.com designates 2607:f8b0:4864:20::f2e as permitted sender) smtp.mailfrom=srinuvasanasv@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1747661614; x=1748266414; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:sender:from:to:cc:subject:date:message-id :reply-to; bh=OLN2TZBojca/yI1I8P0zQwTR3M1BfvMfCyauBxug/gI=; b=c2LxfWz4gzbIuOyN2cCXPYp58wuYHYjYTVDbHYYKZYktgtt9Wg2U/MwMjQe953acu7 odjdkcFLmENF1awyHn+YHjhKz0hkg1WuqeLZ5SE2MdQ4CxO48KYuRPHRZRlZPYH5MZ9L AlqU2j/1F+n4m6AC3f6/HZBKcQcPhralEk7Zi3ODSg7+I+P/9c79jjEr42KGaebVst7S 6IpEU1YWWuBz/E7SjBLhh0+/OyOw50v7yEZGpXfYRgO5tcKXyMjVdgh0YaccDcXg6MpU T8B3TnbGBKXIuOwhv2W4NuZHpDjORjUjtqtjZCY6INdXK30lfcU8lXblQak4anNZfssy 2z1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747661614; x=1748266414; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OLN2TZBojca/yI1I8P0zQwTR3M1BfvMfCyauBxug/gI=; b=LbehNhYebtgda02M6NiiBab/xh0AveRGSkQZ5dAYngQKx5dqAyWskOOI2NXT3nxvrl CyJIZ/jy8ZsFbU5FtFpxXQjBrEjel6ik6hAlxRBwKH8UTewW68p90da6a1WNj11ArGDo 2uf+g7VZ2wFVnSF7bMkFKXgl/wEY6jQHJrMpYL6jia1tdVHP1jotSijDdwBtWOtePekH 3gzwL764MF5euVgvJMKLU7XSjogyTs0nobSHM4e8ne4cT47G5h6uUQqpD4mXg434KE8J UoGVjhr7L5g6n+tsx8yrK0EpdzVR2r/YW94Aku+2CRfM8jDaG02VEz1Ho2gb55EHYhFx WudA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747661614; x=1748266414; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=OLN2TZBojca/yI1I8P0zQwTR3M1BfvMfCyauBxug/gI=; b=d0amK+B9LMfK0YADMkwyS8eiBfzPpuyzO9ekNf0K4mjQB2UzrszTdmVr1jL9Z6htCX 2msu+AMuJlv0+Wut7u+qO+fTfFVP8dDx4THiC6tpyV/BtFZEZaiko+/qJEpDNfMw/gcp zGmAhRWP/a0+rYPPH7MDHmfp8BoKjM7DluCR6pTztugiuJRSV9RdaTc822yuXdGtoyaD pXsEjin/8Vh27i4KxeVJcNXANj81Lst6hDI5UCKr2q5HpAWNMXr78r13m7BTNlPWoGvH /fO3bzOfYp/shB4ZaslXa18hSfmQqagnQLwsaYl8JO0SgNNaFDiwxSzIPqkluRrzoPRJ i+Tw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCUZaNIITVg5220gfQkrGmNXHlptuah7IN6LtpB3JMWTorH2QUNnlkEs9Ut4yOoOgzvxSaln@ilbers.de X-Gm-Message-State: AOJu0YxmDqHeNYleqIC7JQsM2Jkl8fjb30pxwdbf76rpplFFpCAIzhcv vUDmvZ8JD+S5ptaqPUaV/sR++/XgXbwdOovDuhjL09z3ptjDetPkjKlR X-Google-Smtp-Source: AGHT+IGCxzDMOY4QC7gkuQWGZDoynfbo2RBAzMUBQQ8yiskmfKZSJE6m4cbBidAGXSq2AYpUMDm4ug== X-Received: by 2002:a17:903:19ce:b0:224:a74:28cd with SMTP id d9443c01a7336-231d454b072mr193086865ad.31.1747661613736; Mon, 19 May 2025 06:33:33 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=AVT/gBGpiSr7sR3Q2rJN2ePZqBLacD5UOcQGv4UVblkjqBg0Hw== Received: by 2002:a17:902:ed0c:b0:231:e735:850a with SMTP id d9443c01a7336-231e7358650ls19054685ad.1.-pod-prod-09-us; Mon, 19 May 2025 06:33:32 -0700 (PDT) X-Received: by 2002:a17:902:e54c:b0:220:faa2:c917 with SMTP id d9443c01a7336-231d45a9ca8mr201620745ad.34.1747661612214; Mon, 19 May 2025 06:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747661612; cv=none; d=google.com; s=arc-20240605; b=leRajaokl/+M8eGJrQR64+LsUi5uURy+umV/B56dLtz/fKYY1s264lxU8XBKW/zcbU wFe5Q96Y2rLnpP4ifPwrbK7taIIxR8OU81quwO18nQzMPJ/jELGR/LehZE7kXJEATX1g XlfH7hamOiUuscV6dEhJgBfukdQZnySlK1XWW8klO/lfSfIZShkCLfWTjRh60PESiLRL zu+Hybbo7SiEfwcXGPSgj0zUywFpTgRmfeqq7W36szeubGY2hVHIv3iYYgidtf+WLvK6 jS7xjAMQg2mNNhOuXnVaU3D6EzYwtdADxiJBU5WXzNEzxRrWekFGoMP1lRPYavqBr/OV Uk7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=jtD+fh3xrSgW89cW8CeP5NaSDsGlpzGWTJyCS9ZLrUE=; fh=m6dDjgBTVHhZuvtbleUx9iJ25kzDGkuZLDvNsmJwcts=; b=YDy9b8sPBQ2w4Y2fnRfWfgV9y1JisBVf0HCRJEwSjXkdSxLtqR6PTr19184O09ipsm KQvaiw5BsstlzAtatZUTo/sq7lvQp6oVn50U86mx1Ieu5YNpxz3ecwbs/MP9wPDBwDjB R4sD2kSLKAoJrEfhZ7Fu8aIvd+Wv+w5m4xwOA48rI9nvrg2Dw/+awuSHYm5Wdmmn6C2a 6yafOuR0Q+4R8oNwpGH5UfD2l/iBiMMfr5HkNDWRO/ogJGQeKVjEKXx6sVH+omKP0ot4 y8IL2jLQURZ+yqSlwoKMvBkbb1mqfBWoO86KgYx0av5o1P2A5tmMSOC5Ty+rTJ7SHQ6L qGIQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KYCA5cwN; spf=pass (google.com: domain of srinuvasanasv@gmail.com designates 2607:f8b0:4864:20::f2e as permitted sender) smtp.mailfrom=srinuvasanasv@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com. [2607:f8b0:4864:20::f2e]) by gmr-mx.google.com with ESMTPS id d9443c01a7336-231d4e3f320si3368125ad.8.2025.05.19.06.33.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 May 2025 06:33:32 -0700 (PDT) Received-SPF: pass (google.com: domain of srinuvasanasv@gmail.com designates 2607:f8b0:4864:20::f2e as permitted sender) client-ip=2607:f8b0:4864:20::f2e; Received: by mail-qv1-xf2e.google.com with SMTP id 6a1803df08f44-6f8b9c72045so38490476d6.1 for ; Mon, 19 May 2025 06:33:32 -0700 (PDT) X-Gm-Gg: ASbGncv7aznZm6PO1jsXEjVUkX/0g+ToCc5pEABP90EDlOvUer2PnRILjmDCUOHRfvs PImvYmeQILMWVhXlVgkE3xlN7hCS7J/K6ZzSbOjpOhBmoWgHpV/KSehrdVAz7kaQ+GA7n8hxfxX iGK7IAsP+RqhIKHNBtm0nVR+DiISIz3QGDjQ== X-Received: by 2002:a05:6214:2428:b0:6ea:d629:f47d with SMTP id 6a1803df08f44-6f8b08f9a5bmr210273506d6.44.1747661611371; Mon, 19 May 2025 06:33:31 -0700 (PDT) MIME-Version: 1.0 References: <20250515150727.1764989-2-cedric.hombourger@siemens.com> <20250519115750.3195300-1-cedric.hombourger@siemens.com> In-Reply-To: <20250519115750.3195300-1-cedric.hombourger@siemens.com> From: Srinuvasan Arjunan Date: Mon, 19 May 2025 19:03:20 +0530 X-Gm-Features: AX0GCFuKPBeG_ByPP5F8oLt_UnfrY7k0EzHg76fYRfSRjnqiLeiJrbp4EAj3Coc Message-ID: Subject: Re: [PATCH 0/4] non-privileged commands in chroot To: Cedric Hombourger Cc: isar-users@googlegroups.com, felix.moessbauer@siemens.com Content-Type: multipart/alternative; boundary="00000000000088903606357d2d41" X-Original-Sender: srinuvasanasv@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KYCA5cwN; spf=pass (google.com: domain of srinuvasanasv@gmail.com designates 2607:f8b0:4864:20::f2e as permitted sender) smtp.mailfrom=srinuvasanasv@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: jBUg+GRNjIjC --00000000000088903606357d2d41 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 19, 2025 at 5:28=E2=80=AFPM 'Cedric Hombourger' via isar-users = < isar-users@googlegroups.com> wrote: > When building root file-systems for a foreign architecture and needing > to cache source packages, apt will be called from within the rootfs and > consequently be executed under QEMU: this is terribly slow especially > considering that source packages are downloaded one by one. This patch > series introduces a wrapper function to run native commands against a > rootfs with our special mounts such as /isar-apt. Some basic tests were > performed to smoke test this approach and evaluate its performance. It > should be noted that the changes introduce a new host tool dependency: > bubblewrap. Alignment with projects such as kas would be required (had > a positive discussion with Felix but no actions will be taken prior to > receiving some form of agreement for this patch series). > > Changes since RFC patch: > - Let caller decide where to bind-mount the rootfs to > - Make the rootfs argument optional > - Support 32-bit rootfs (no lib64 there) > > Validated with "citest.py -t dev" (in a kas-container): > > (1/6) citest.py:DevTest.test_dev: STARTED > (1/6) citest.py:DevTest.test_dev: PASS (752.07 s) > (2/6) citest.py:DevTest.test_dev_apps: STARTED > (2/6) citest.py:DevTest.test_dev_apps: PASS (770.95 s) > (3/6) citest.py:DevTest.test_dev_rebuild: STARTED > (3/6) citest.py:DevTest.test_dev_rebuild: PASS (275.02 s) > (4/6) citest.py:DevTest.test_dev_run_amd64_bookworm: STARTED > (4/6) citest.py:DevTest.test_dev_run_amd64_bookworm: PASS (47.87 s) > (5/6) citest.py:DevTest.test_dev_run_arm64_bookworm: STARTED > (5/6) citest.py:DevTest.test_dev_run_arm64_bookworm: PASS (31.20 s) > (6/6) citest.py:DevTest.test_dev_run_arm_bookworm: STARTED > (6/6) citest.py:DevTest.test_dev_run_arm_bookworm: PASS (32.34 s) > > Cedric Hombourger (4): > rootfs: introduce wrapper to run commands against a rootfs > deb-dl-dir: optimize caching of source packages using apt natively > image-postproc-extension: refactor systemd version checks > image-postproc-extension: extract systemd's version using rootfs_cmd > > RECIPE-API-CHANGELOG.md | 6 ++ > doc/user_manual.md | 1 + > meta/classes/deb-dl-dir.bbclass | 37 +++-------- > meta/classes/image-postproc-extension.bbclass | 12 ++-- > meta/classes/rootfs.bbclass | 66 +++++++++++++++++++ > 5 files changed, 89 insertions(+), 33 deletions(-) > Tested-by: Srinuvasan Arjunan > > -- > 2.39.5 > > -- > 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/20250519115750.3195300-1-ced= ric.hombourger%40siemens.com > . > --=20 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 e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= CAB2Z2nPp5uOcv1m%3DOw1%3DLyJ2XwiGcwZkujeWDkP%2BZO3EQk%3DR-g%40mail.gmail.co= m. --00000000000088903606357d2d41 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, May 19,= 2025 at 5:28=E2=80=AFPM 'Cedric Hombourger' via isar-users <isar-users@googlegroups.com= > wrote:
When= building root file-systems for a foreign architecture and needing
to cache source packages, apt will be called from within the rootfs and
consequently be executed under QEMU: this is terribly slow especially
considering that source packages are downloaded one by one. This patch
series introduces a wrapper function to run native commands against a
rootfs with our special mounts such as /isar-apt. Some basic tests were
performed to smoke test this approach and evaluate its performance. It
should be noted that the changes introduce a new host tool dependency:
bubblewrap. Alignment with projects such as kas would be required (had
a positive discussion with Felix but no actions will be taken prior to
receiving some form of agreement for this patch series).

Changes since RFC patch:
=C2=A0 - Let caller decide where to bind-mount the rootfs to
=C2=A0 - Make the rootfs argument optional
=C2=A0 - Support 32-bit rootfs (no lib64 there)

Validated with "citest.py -t dev" (in a kas-container):

=C2=A0(1/6) citest.py:DevTest.test_dev: STARTED
=C2=A0(1/6) citest.py:DevTest.test_dev: PASS (752.07 s)
=C2=A0(2/6) citest.py:DevTest.test_dev_apps: STARTED
=C2=A0(2/6) citest.py:DevTest.test_dev_apps: PASS (770.95 s)
=C2=A0(3/6) citest.py:DevTest.test_dev_rebuild: STARTED
=C2=A0(3/6) citest.py:DevTest.test_dev_rebuild: PASS (275.02 s)
=C2=A0(4/6) citest.py:DevTest.test_dev_run_amd64_bookworm: STARTED
=C2=A0(4/6) citest.py:DevTest.test_dev_run_amd64_bookworm: PASS (47.87 s) =C2=A0(5/6) citest.py:DevTest.test_dev_run_arm64_bookworm: STARTED
=C2=A0(5/6) citest.py:DevTest.test_dev_run_arm64_bookworm: PASS (31.20 s) =C2=A0(6/6) citest.py:DevTest.test_dev_run_arm_bookworm: STARTED
=C2=A0(6/6) citest.py:DevTest.test_dev_run_arm_bookworm: PASS (32.34 s)

Cedric Hombourger (4):
=C2=A0 rootfs: introduce wrapper to run commands against a rootfs
=C2=A0 deb-dl-dir: optimize caching of source packages using apt natively =C2=A0 image-postproc-extension: refactor systemd version checks
=C2=A0 image-postproc-extension: extract systemd's version using rootfs= _cmd

=C2=A0RECIPE-API-CHANGELOG.md=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 6 ++
=C2=A0doc/user_manual.md=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 1 +
=C2=A0meta/classes/deb-dl-dir.bbclass=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0| 37 +++--------
=C2=A0meta/classes/image-postproc-extension.bbclass | 12 ++--
=C2=A0meta/classes/rootfs.bbclass=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0| 66 +++++++++++++++++++
=C2=A05 files changed, 89 insertions(+), 33 deletions(-)


=C2=A0Tested-by: Srinuvasan Arjunan <srinuvasan.a@siemens.com>=C2=A0

--
2.39.5

--
You received this message because you are subscribed to the Google Groups &= quot;isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users= /20250519115750.3195300-1-cedric.hombourger%40siemens.com.

--
You received this message because you are subscribed to the Google Groups &= quot;isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-use= rs+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.= com/d/msgid/isar-users/CAB2Z2nPp5uOcv1m%3DOw1%3DLyJ2XwiGcwZkujeWDkP%2BZO3EQ= k%3DR-g%40mail.gmail.com.
--00000000000088903606357d2d41--