From patchwork Thu May 11 10:50:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anton Mikanovich X-Patchwork-Id: 89 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 11 May 2023 12:50:41 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-vs1-f61.google.com (mail-vs1-f61.google.com [209.85.217.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 34BAodlF011891 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 May 2023 12:50:40 +0200 Received: by mail-vs1-f61.google.com with SMTP id ada2fe7eead31-4348c88959dsf1567030137.0; Thu, 11 May 2023 03:50:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683802234; cv=pass; d=google.com; s=arc-20160816; b=dnMSuwzzuJr1uSjxgAq6EZyQ92SGOSwAkHrfLj6LDNFnyhfPhDo3ws6EfnNNPHLfUK vCWdWtfvOiE7z+OTWUrjFplPfsWkROfnsA+ernCPNd6gNqA/Qmus37IyQ0leb943MRnk zAvLAPMprXMAbfOwJv547Id/PJK3NenVAjrZGOY6c4QUC5foJTRtqrfV8y6a/Cg+X8JV f1ooa2f3f7TOESr42JAWZSsDDtCHgTlDGV8+p7t5TZ/Z80Kij3oB9C4nYolVF2X1Iw3e Bp2X/pWyaRTHlb44cbPMmivnBa03PK90nt4qHyThuGpLatacb5fcf4ph3J5Xun57jUSo XFNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=gEvaXuCnMsUms2DrG2X2BMgVJho8KnGmcy5Eaiq+0Qs=; b=e/+AbosjXOAj+6JLq1lUm+Gu0WtytItFwUV3T+YZmbJTeXDQ9jB7l3/7b6DW1QRAKD fCR6HfmwaXlN6mXUcOb7jOQRIXvRXfpOiRZRwFEzmvokK1W9Bvnu2Lipq7T1rkU1Nht4 starkxBNEk0ZYmHejt7KW2Ddejkc8/BYcGzbTJnD+PlAyx4Qxpn5O8tOCdQ5CKYQ3mzG lqQu+fRU5q5PT3m9F+U52GAX0ni8HOcS3cgOllhm92UjCmIAagXlRlNH8NxXwsXnbOY5 VT0etIlTUcxcMtiSqPAITXIDg3UxpNUgmBkz53K6Osegz2PoovKd3seBd0ZyUR5Ro8tT gdBA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1683802234; x=1686394234; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:content-transfer-encoding:mime-version:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=gEvaXuCnMsUms2DrG2X2BMgVJho8KnGmcy5Eaiq+0Qs=; b=lXBszG/HZoYnBrGXBa/lhykcgsTNOZ+XATJ3MqyalZyTDJqPu8/MNdBCBODpZsZxKZ eAiFMyorASB7giuQlomE3CI/uwr4/t3rAHwHWb2cm/E5OwZQGw1p/zVC/ZJwvGW4koED CqZYMKgDxoCvjHPq53F63RKkrT28xddaB0anhB09OQZhg5pvnmPM2VNoM/sTIxy4icHR Qy5FKuWEA3VWeq+fi7WiVYShBquSBSmGQw72OeFziVwxwmMe+NiEBldzHV9lbHy6S0C6 VZtRYPJicl/BkJWIbT/1E/zWT0MbcemsUnoVepYpa2Vze+0dX4jXwpWHqPfncjISouXd 5r+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683802234; x=1686394234; 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 :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-beenthere:x-gm-message-state:sender:from:to:cc:subject :date:message-id:reply-to; bh=gEvaXuCnMsUms2DrG2X2BMgVJho8KnGmcy5Eaiq+0Qs=; b=ZmOdElFkbzsGfTfOlEOei9Vq7ALeyKJyE3F/Fv5Y3CSuPg//gPC1A+i7bTfj2wgGfI DA1BLtwoUL3gHyBI+uk59QrZ1Eb7++LFcHx6FTdCqFJRsNezYRAd58I4vrC7SxmZG69M u+odbJeSfeYDM6L9f98g6BTZi3dPExJQrCfVJl75erpPhQf6JDkL0mEhtB7JueSGKxtC 4m364ORysGvzMMxU3c1awunRGPpyQzEuJPq+Ht51XTpJ4iHSqRsW6GNZhRGXHd4qWBPB n08ESk0ClHJn9/lfIP2BeIPxt69TOQhDlFpENZ8ftr/oIK/M5jvFltPP2QysD/iVSfif qycg== Sender: isar-users@googlegroups.com X-Gm-Message-State: AC+VfDx3nWl2u3MBs0+1zUEQwxRVA/5Ku3xdvW1u1jJdZX7cHSSw3YkP mS8dHyZmWnTyNnK2xswDHXM= X-Google-Smtp-Source: ACHHUZ7+xAhnHqFu0de5Y1uxaqEPRKjdTE14PZa+8ijGE2QP+3Ap06A4usvCM7hmMsM/6kTu7Ye2SQ== X-Received: by 2002:a67:d389:0:b0:434:77ed:5cdb with SMTP id b9-20020a67d389000000b0043477ed5cdbmr11661792vsj.3.1683802234432; Thu, 11 May 2023 03:50:34 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6102:3b07:b0:434:5385:c48d with SMTP id x7-20020a0561023b0700b004345385c48dls5191883vsu.3.-pod-prod-gmail; Thu, 11 May 2023 03:50:33 -0700 (PDT) X-Received: by 2002:a05:6102:3cd:b0:430:ce0:ae90 with SMTP id n13-20020a05610203cd00b004300ce0ae90mr6719711vsq.14.1683802233624; Thu, 11 May 2023 03:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683802233; cv=none; d=google.com; s=arc-20160816; b=uwqGRfM9G2Tl4/7nFkkGvrXAjcrhIFGbyBCD1sWEdY8yj42Imu10uABo4BaJ3/eh2W 7UbSfQlKc7sHFvEkBaSz/jDhMGXAOBOI+FJZpfq5RdneMSpQU0NKTQgoyRjU1bGkJKzo CBPCSc8eC6mOf7fge1XZr7oKUN0ddc2DQrWo1QnV7M5SwJkrb+DiW5/LAv1Zp6ye9WUI WEs/6Rr4KPYg0vICWySIUARtG4Gifn5BEh2U22X0wjvb1CxAjW4Qj4ZYL1fL3M+NSdAc FDYKkuvNG/2RDvJg0oNH4sKfe0BSmKpbnsksHEOWzuaIg9hLYvc8fQUt0eWGFioo+9j2 LrPA== 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:cc :to:from; bh=3OT5FNJRKpSG5EVmWWo0vXnbDH9WpJvQQV0UNvkBmjg=; b=JfbirJpw9wjbLU5yOdi+8ZZvOU0/zv60ADa9QBHgHP0K21sqU8rq/6BYopg9OPPqc2 ztrlweoSctzJ/7PxiGQbaxu7T+o5P7aL79UHbq4whtwxVgMPx9wVBfXzHK3+q2H6XbRa csLH5x188+AgIZpI4xyQkXSjpCpimlFS9NSofNk9H8LZ3+J5wt82vWDFIP6cjE0hZeGp RVFiwZEPHGCek9FaqdDFqETIO6HH2hwM9KxHcGhuVu52bwAtXfeGEL5yOtTow0EjoyQC RLTiZSCrrGokB/l1r09z8PWr5If2x/WeSD02+d6k4adntnIKqFBGH8z7jTdjL2W2guJw tMNA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id bt22-20020ab03f16000000b0077d3c410308si1015050uab.2.2023.05.11.03.50.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 May 2023 03:50:33 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from user-B660.. ([85.254.75.115]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 34BAoQ00011851 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 May 2023 12:50:27 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v4 0/7] Imager schroot migration Date: Thu, 11 May 2023 13:50:13 +0300 Message-Id: <20230511105020.1881496-1-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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-Original-Sender: amikan@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= This patchset moves Isar imager from buildchroot to schroot usage as the next step after moving to sbuild. ​ Imagers of every target are now running in separate schroot sessions with independent overlays on top of basic unchanged schroot. Any changes made inside overlay will be dropped after the usage to keep basic schroot clean. ​ Changes since v3: - Rebased on next - Fixed full CI build issues - Add documentation updates - Fix task name in CI - Some code cleanup ​ Changes since v2: - Rebased on next - Do not keep schroot session open outside tasks - Get rid of final cleanup code - Fix sstate test case - Get back buildchroot removing ​ Changes since v1: - Rebased on next and bitbake update - Fix some build cases Anton Mikanovich (7): isar-apt: Move cleanup to postprocessing imager: Migrate from buildchroot to schroot imager: Move image types to schroot imager: Split imager deps between image types CI: Fix used chroot recipe name meta: Remove buildchroot doc: Update chroot documentation doc/offline.md | 2 +- doc/technical_overview.md | 107 +++++++++--------- doc/user_manual.md | 53 +++++---- meta-isar/conf/local.conf.sample | 2 +- meta/classes/buildchroot.bbclass | 59 ---------- meta/classes/crossvars.bbclass | 6 - meta/classes/deb-dl-dir.bbclass | 4 +- meta/classes/image-tools-extension.bbclass | 99 +++++++++++----- meta/classes/image.bbclass | 35 +++--- meta/classes/imagetypes_vm.bbclass | 9 +- meta/classes/imagetypes_wic.bbclass | 89 +++++---------- meta/classes/isar-events.bbclass | 1 - meta/classes/rootfs.bbclass | 12 ++ meta/conf/bitbake.conf | 3 - .../buildchroot/buildchroot-host.bb | 13 --- .../buildchroot/buildchroot-target.bb | 10 -- .../buildchroot/buildchroot.inc | 73 ------------ .../buildchroot/files/build.sh | 17 --- .../buildchroot/files/common.sh | 32 ------ .../buildchroot/files/configscript.sh | 15 --- .../buildchroot/files/deps.sh | 47 -------- .../sbuild-chroot/sbuild-chroot.inc | 1 + scripts/contrib/convert-overrides.py | 2 +- testsuite/cibase.py | 8 +- 24 files changed, 218 insertions(+), 481 deletions(-) delete mode 100644 meta/classes/buildchroot.bbclass delete mode 100644 meta/recipes-devtools/buildchroot/buildchroot-host.bb delete mode 100644 meta/recipes-devtools/buildchroot/buildchroot-target.bb delete mode 100644 meta/recipes-devtools/buildchroot/buildchroot.inc delete mode 100644 meta/recipes-devtools/buildchroot/files/build.sh delete mode 100644 meta/recipes-devtools/buildchroot/files/common.sh delete mode 100644 meta/recipes-devtools/buildchroot/files/configscript.sh delete mode 100644 meta/recipes-devtools/buildchroot/files/deps.sh