From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7182796544906625024 X-Received: by 2002:a67:dc11:0:b0:3cd:b137:8142 with SMTP id x17-20020a67dc11000000b003cdb1378142mr1198452vsj.78.1672736499344; Tue, 03 Jan 2023 01:01:39 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6102:23cc:b0:3b1:1703:92cb with SMTP id x12-20020a05610223cc00b003b1170392cbls7291807vsr.1.-pod-prod-gmail; Tue, 03 Jan 2023 01:01:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXu//7LxYEs9MjN+6bNb+o57i3l8MwqdeGqaMqtUJytSRtUvgG9szrJ8I6ucv75gVIQYgdjB X-Received: by 2002:a67:b649:0:b0:3ce:89c2:a73 with SMTP id e9-20020a67b649000000b003ce89c20a73mr3152759vsm.7.1672736498339; Tue, 03 Jan 2023 01:01:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672736498; cv=none; d=google.com; s=arc-20160816; b=L5wZnXeEgjaaOE85qiDO5Y2p4Ve97oAkFJM6muTIGI+Eo1WTFG3p9dNZuCWc2mybLt /YBbge/4gSeLDwOIZCPot2Zd8IJov2b1D6qvWrlt3I7++5sQeFLrMWVF7DHW/OqKv2fT EFnAhB+2AcOsm+157F2p/kee7YL3SiWqWsaSthp31Hn4FenF3MEYAcb+wwh3xypZKApB QMlBTH7nBRcSE0zzT2UYdy4X81PCzX8LWHwQnyUjZLm6nxILN4t5S8Gi9VF7uh5sBXRt SbDo05FWQ5oKKoCSpkNKy6SOIXh4OTCG429V66/y3I74M4m9xJk2A/FMsaa7oBLIpRdt 82RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=9ZwVa1roTj3sW1ergvjR/vN9aTqT50OSPhhs+trga38=; b=EVTdFs7gPqEbGElRDJZ8az3zbmtNAttFTMuBGIcNwiQxrn/GvJuH8lipj6M9OyIjLa jSgDchcORJL+GPH/Wr32yk9SDl4bz4mLzKCJR+i9qxBoDQBQl1zP5ZyAp5ciTXu5SecB pTyREpQ87EsNzMCCxOYQNRPJViWzG+pQlblTgxHKkw4eLTcTo4HlMqqnPxgqLfdo09hi gmrtCbDm664Pjlu82RSeFm9dxdXuk2u7UZHIKIExFiVGHnf5LzgadEzZ+8BELUePypXO rk9jPje15bEGKXwK+22s6msBO7+5hghM1WnS0UQaY0Wl3K27473p9rnOvzg/41O9nQZ7 KN6g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IGLC5l0m; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::734 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com. [2607:f8b0:4864:20::734]) by gmr-mx.google.com with ESMTPS id j5-20020a67e305000000b003ce9fcc1ea2si97759vsf.0.2023.01.03.01.01.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Jan 2023 01:01:38 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::734 as permitted sender) client-ip=2607:f8b0:4864:20::734; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IGLC5l0m; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::734 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-qk1-x734.google.com with SMTP id o14so14436117qkk.5 for ; Tue, 03 Jan 2023 01:01:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9ZwVa1roTj3sW1ergvjR/vN9aTqT50OSPhhs+trga38=; b=IGLC5l0mmWvDKLPVEVIGFa1ky6k9dLajhrZmG4UKPrSercDjIzEZfbVxPGtoW5GLFt QqjnOnEKqtTsuoyxiiY9HupyZCnK5+6pGxnDo2A5QVD1fCM+uCKWx0A+bVUQbnv9cRL5 ars1Ov5qOF3A0ZjS37TpcmXkJ1tWT3T3pDkkHz6+0VevLzqclo7aiB0pR6zHLaAydTN7 9gZfpo52vGvoE+qQlUemKsOAuKWQlxH27ev8wVplpY21h/bUL9WSP1NV1EH4KpTqBaTL LEwfzcksIPW+NRDaU0IfTJek+O61x1LLjtw1YjaJDCUjK4G5jykoN1hJrzw9KbY/+NTw fmag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9ZwVa1roTj3sW1ergvjR/vN9aTqT50OSPhhs+trga38=; b=Tnq7zlGviq5IjammOzdPLrIm1qc1ELwhGY85TORQ+w5H60F4EcsxJlCtXKbgbVrlah +94Ww8iYWxhjBmRaD2Ul+UGUscSltnWOxqB4MvfvFF+9MCqgXHAvHF3djA5g65Ssj4X+ CsgptT+jolTX1XC34cJP4hqLO2XG/E5yVE2Zim4DlSVr6KPaKglw8DjhEEZZm/XYSKEV +HAVCAaDLtlRrZbmxEWeG4aKTPjKRaMsy10hkJRTiJ7jX55iHnVgJMLMCXauEHEfggTE G8TqB+7fTN624PrpzP8a09QdWtlTt4HaGzjpe21lSUkv/Wrez9fTP57Ecfwfr0YSSfSt uHIQ== X-Gm-Message-State: AFqh2kqgPexvQPfd9lHMCMOQGHt4epslZ8kGSZYRN6JXQwhFgu1aDXKt M6CW42zCZPPzoBdwzljuEQaZb2yoAYW7fyhCfrxjvKnEvQ== X-Received: by 2002:a37:ef12:0:b0:6ff:9cee:d086 with SMTP id j18-20020a37ef12000000b006ff9ceed086mr1453599qkk.119.1672736497903; Tue, 03 Jan 2023 01:01:37 -0800 (PST) MIME-Version: 1.0 References: <20221230043858.15411-1-ubely@ilbers.de> <20221230043858.15411-3-ubely@ilbers.de> <20230102173306.4116a115@md1za8fc.ad001.siemens.net> In-Reply-To: <20230102173306.4116a115@md1za8fc.ad001.siemens.net> From: "Roberto A. Foglietta" Date: Tue, 3 Jan 2023 10:01:25 +0100 Message-ID: Subject: Re: [PATCH 2/2] Clean apt cache from debootstrapped rootfs dirs To: Henning Schild Cc: Uladzimir Bely , isar-users@googlegroups.com Content-Type: multipart/alternative; boundary="000000000000c2b55105f1585024" X-TUID: uRp/N7o9qqca --000000000000c2b55105f1585024 Content-Type: text/plain; charset="UTF-8" Il Lun 2 Gen 2023, 17:33 Henning Schild ha scritto: > Am Fri, 30 Dec 2022 05:38:58 +0100 > schrieb Uladzimir Bely : > > chroot "${ROOTFSDIR}" /usr/bin/apt-get -y clean > > I did not look into the details, but maybe that is what one might want > after most of not all calls to deb_dl_dir_export. Hi all, There is a specific function/task that do that in rootfs post processing which means that clean the apt cache BEFORE importing it (*). Then with the schroot only patchset (which misaing the dpkg base class to rip off buildchroot but it is straightforward to achieve) there is just one need of this after inage finalisation (but just for aesthetic reasons due to the use of ln -P). (*) that task is currently also removing debian lists which is not intended for and IHMO the two ROOTFS_FEATURE should be separated. However, inserting at the end of deb_dl_export would simply the whole architecture. Moreover, every import/export if packages should also do the same with apt-get update lists in such a way it will be run faster also with a slow Internet connection. Another trick that matters to implement: wic stuff is produced into a local schroot mount point and then moved outside causing a duplication of disk I/O while using the final destination immediately will save that burden and when the inage is about 10Gb, is not a little thing. All these stuff can be seen in the branch 'schroot' of my fork plus some fixes. Best regards, R. --000000000000c2b55105f1585024 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Il Lun 2 Gen 2023, 17:33 Henning Schild <henning.schild@siemens.com> ha s= critto:
Am Fri, 30 Dec 2022 05:38:5= 8 +0100
schrieb Uladzimir Bely <ubely@ilbers.de>:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 chroot "${ROOTFSDIR}" /usr/bin/ap= t-get -y clean

I did not look into the details, but maybe that is what one might want
after most of not all calls to deb_dl_dir_export.

Hi all,

There = is a specific function/task that do that in rootfs post processing which me= ans that clean the apt cache BEFORE importing it (*).

Then with the schroot only patchset (which mi= saing the dpkg base class to rip off buildchroot but it is straightforward = to achieve) there is just one need of this after inage finalisation (but ju= st for aesthetic reasons due to the use of ln -P).=C2=A0

(*) that task is currently also removing d= ebian lists which is not intended for and IHMO the two ROOTFS_FEATURE shoul= d be separated.

However,= inserting at the end of deb_dl_export would simply the whole architecture.= Moreover, every import/export if packages should also do the same with apt= -get update lists in such a way it will be run faster also with a slow Inte= rnet connection.

Another= trick that matters to implement: wic stuff is produced into a local schroo= t mount point and then moved outside causing a duplication of disk I/O whil= e using the final destination immediately will save that burden and when th= e inage is about 10Gb, is not a little thing.

All these stuff can be seen in the branch 'schroo= t' of my fork plus some fixes.

Best regards, R.
--000000000000c2b55105f1585024--