From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7014023532628672512 X-Received: by 2002:a17:906:940c:: with SMTP id q12mr4874480ejx.151.1633079613622; Fri, 01 Oct 2021 02:13:33 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:7047:: with SMTP id r7ls4115170ejj.5.gmail; Fri, 01 Oct 2021 02:13:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnDngMBsujM3QdsfzADK8FcPoaA1msOqGx1hqZqROYdgO/mKat98Lm4hg/xVzNMRC1nxjz X-Received: by 2002:a17:906:fb92:: with SMTP id lr18mr4953908ejb.195.1633079612385; Fri, 01 Oct 2021 02:13:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633079612; cv=none; d=google.com; s=arc-20160816; b=kg7pfS4ZYM2VpctV96jL5bEbL8M6Q3fNjkZNenLY8NQB1ruKmnUqJpji2mKOmNScux MaPgd7eZ1jlVqZtZxWeiSzGWbKcbiWCmTEh4T1N6dW1nx2ffVW90QDANS6TaE9JYFDkC PioAJvp5xT1n82NNEDCgvmUEuKg7LUjOlM1fNAuJIjOzMa7UmyJJLSIKHwh2Vu6txEtt otJ2LKk+VzAElkEmqbvJLsLQ8jtWm5sorDzxsDOAlpZb0C2rxxOlCYiw5cb2a+nBZJs6 D08NkCo8IHzDPhxaje3ilueyomH7iW1b75SHu/yq6xhNWnSHHYOWyh/DCwOyR0/Wo448 jvtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from; bh=XH8lE9O1+dujSf9uhyhYRR97nq6Eoue5Exl7KcCFnaY=; b=fMw5xgrFME9Tj/KSnmpG6LdTJqWqrSHogGcy15nQuJ4sIgZHFIAOLGDjdAVKjKi4yy VWcwWqL2SgpsTJX4/GLVEmHHqM+2ul3tTh7lQYQp1SrNomQl6uo1TRKTUzlUkBzbNNfS AsJdbLk6Fw876Z0lh0poDXWcNR8QSooTPwUPVQWI8MrckBd5xTIJVD0p7bhidVdlJQ+k RgaFUpEc24pqjyUCJYySTswYly7G6eXx3G5aMGY9Ut/UtjATrV6g5mmZpGZCDoSg1kHq xgFp3KkX2+9oZ9CIJGHo8btDW+GwGYZahQYVcAmx69gQPoCRUMdn+tNvzbX9PExW3DeS DeXQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id y4si247345edu.1.2021.10.01.02.13.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Oct 2021 02:13:32 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 1919DTXM021699 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 1 Oct 2021 11:13:29 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v2 0/1] Improving base-apt usage Date: Fri, 1 Oct 2021 11:13:28 +0200 Message-Id: <20211001091329.12979-1-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: PsST0hSO9qZN Changes since v1: - rebased on latest next - updated patchset description Currently, base-apt is used in the following way: * At first build every deb file that took part in installing is cached in directory $DL_DIR/deb/. Debootstrap is done from remote source. * At second build, `base-apt` repo is created from previously downloaded debs (if ISAR_USE_CACHED_BASE_REPO is set). Debootstrap and installing packages later is done from this local repo The idea of this patchset is to precreate `base-apt` at first build and use it later for all steps. So, no second build will be required. Currently, only debootstrap part is supported, all build-deps are still installed as before. In future, there are plans to switch from debootstrap to mmdebstrap that is able to work without sudo and uses more clean (apt/python-apt) approach in comparison with debootstrap. Uladzimir Bely (1): [meta] Use cached base-apt repo to debootstrap meta-isar/conf/distro/ubuntu-focal.conf | 4 + meta-isar/conf/distro/ubuntu.public.key | 53 +++++ .../isar-bootstrap/isar-bootstrap.inc | 35 ++- scripts/debrepo.py | 216 ++++++++++++++++++ 4 files changed, 307 insertions(+), 1 deletion(-) create mode 100644 meta-isar/conf/distro/ubuntu.public.key create mode 100644 scripts/debrepo.py -- 2.20.1