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; Tue, 28 Jul 2026 17:29:15 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f63.google.com (mail-ed1-f63.google.com [209.85.208.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 66SFTEf1010814 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 28 Jul 2026 17:29:14 +0200 Received: by mail-ed1-f63.google.com with SMTP id 4fb4d7f45d1cf-69e3aaf5ea3sf4641085a12.2 for ; Tue, 28 Jul 2026 08:29:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1785252549; cv=pass; d=google.com; s=arc-20260327; b=QByhTD9nbHcTfqpSnbahbM40GH+KLbgYpCpK8inlCpXbsg6pjjbWM1+kFtRl+tAxwq HYXYnrRSvLhMctStcKqsT7z5nbnMnVysOsefJvj02tXPtyQQZDIeeEHJPF0Y8LvgZxlL 8WtNW4DFH4J0dvhA5qR0+I/fhjKUF95VRnCByjfdSU6XfPCNg5SBUkHrSLkYgotT7hgy XzCgtLKCkCkD1RCICjrcXpCDN7Py0TPAxZki2uJDGFRMITnJVNWex6Y7tATGjOrLxL1a 0WSvCrzFomr++0NYDTL61KllEB2gXoNZU2rRWWkVchWDOfZSUm7bJLAfE+u8QbUWwmKV zqlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=TCTMbQqbERltunXbtDUkBEQnjWZQnIdjFD3T3R53Gew=; fh=IXmtf1L6F559d+XQlWPasMNDNpa2YiyYHgDrt0gV4/E=; b=aWDn/jywX6NCnLZdashZZwfngDBR4YtouP/vhcYphlmg8eJ2YDA4joze8UuuFmddcz LfzTI4ZOzexSU7RvWuzpxwQhmNqpQ54gATLAxymEwwhthl/r/ksBaQZ/ICMCzRpW0pOM mgTNMxxgHQ+ZPaNQwiazMK9EUslFCaw3ydltrvoDh9a/kFIAoZ/7P1roE0CbB7MyMUUT 4zmYwUeCk5HPe/PaOmpKJ4sMwIH0g/rkIAZrat9/Ft1vN41mfKFO/mh3IgLzB4fr6CCa +JCm4zFwPhwzm3B23J/OlORT6TPtBzEbugOjeaowMBUwrQup5FO4yJ8ZKISN5OmO0RLM MmEw==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1785252549; x=1785857349; 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:content-type:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to:content-type; bh=TCTMbQqbERltunXbtDUkBEQnjWZQnIdjFD3T3R53Gew=; b=glFB2bGYutLdSTG9lG3hZLwQaXzFM8xjSWrCD4BPKCwDJCZvJb5DK/+Ee9HMr+Wy0Q DizQ2WjNNa1aq4nG6NF0IkCSORiF1N5FXKBynOZV5JRvgBpCj7BLe6v+PbNZaeWvx1gr KZo4w1Xm9nN3XtRO0T7StZXtSj/OTlv+7bYYIu9NXnGIVjM6eQVzWUcRGsqP090UmyVg S2qsp9rS8DNUSjke6/WJ7e36iu/FYMiEfrGlMUgZ0gGkqfKSwORlOptQNo8S6Qh9Nhq9 VeIYC4s7T2W6AbDm8QaUgsRLHTouXf2nKDsqMbwn28kk/fUg9G2n1ETYPR0YjBwArGkq 3cpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785252549; x=1785857349; 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-type :in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:x-beenthere:x-gm-message-state:sender :from:to:cc:subject:date:message-id:reply-to:content-type; bh=TCTMbQqbERltunXbtDUkBEQnjWZQnIdjFD3T3R53Gew=; b=cenBx2xkOoZjlU/+wZzIVyDima3sCXtQVEvV5QV3m9piMLDjhy2BVQ1wfZZSEqIelO h79xmPgeaMeG0C2OVaiG2HwHNmnk8ILtmAAtlvhukw6TvmHS/LuEmmMkItvoeT4DBzsX tgJ95Bon7impakFRaf4zQWs3SZ+1MyHytikcjuyfFe1ScI+4rQr0cgguEUtb9pN34jNf sVDCo7pRAqOkuI5LsqX8/Iddv7+CgKTiHmZpa024Zl0zCLiNAv5dLLNwr3mnYm6PkB8c 3OqoJugRHlgV4Tq+rkF4CrUOmZee6yBoTZkXNlqF0LvS4To8dKpYMOOnxzQXkOaGJI8W g6nA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AHgh+RoN/tnMp/GtDL98KsnUfisBtpNNTAUX/K9or7OxQX8Rso2ncaDfzVfXFtyhQYqUa2Wh17Oj@ilbers.de X-Gm-Message-State: AOJu0Ywnx7F9zHhDSrBfVTzvt6/PM2phsfVoyakNhSPvpjdsW2BVBIWI CWQ6jQAMfygoSBvIcv1kXq/zofJ2RYBCh3mF50bxaaNE9FDFwHlPXR+3 X-Received: by 2002:a05:6402:43c9:b0:69a:a279:dc10 with SMTP id 4fb4d7f45d1cf-6a034a52e43mr1555646a12.10.1785252548656; Tue, 28 Jul 2026 08:29:08 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="Aa7YSPQtIXStvJGsm2ANr/OWMx5ZW8aNS1o19zfW0jlBRIBjKQ==" Received: by 2002:a05:6402:194d:b0:6a0:16ed:389a with SMTP id 4fb4d7f45d1cf-6a016ed3973ls2376472a12.1.-pod-prod-07-eu; Tue, 28 Jul 2026 08:29:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AHgh+RrsxNpoNTP9+B4skjnVv1/lhsj2btIlXqlh9A6bKfROYd2YZy2U/qg2GhjzOGlxl8yQnbBwL2LAq2Ei@googlegroups.com X-Received: by 2002:a05:6402:548b:b0:697:7f9a:8652 with SMTP id 4fb4d7f45d1cf-6a034abcf0fmr1425730a12.27.1785252546536; Tue, 28 Jul 2026 08:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1785252546; cv=none; d=google.com; s=arc-20260327; b=qNyHCm/nKEu9MZEolQtLTcj3KIerKQAgPdHZZtJKNMlWH88W1orqyTRAuPRRXIMK88 hn6YRnqn1U69nNBKImv+uv+tvS7bY00KWSf8I5cPxk5r8peBHIjg6//Eqm7RGXKI1Hqg zyIB58XIv8NFJePZhWWKNPqEIf8DX1MBXhUnuyugeZSVXr1fAavmnFnfQdKUKeEZZBjQ 4Q0y2NB4WAEOi1RCGY6K5RDJh9Tb88gnL3wWUsTOlhUaq7NePcukw4kuZI81FX5OHgJu SPpPVm1jALQnDcgIdzGt5rPN4rf/mBcMEpV8ikNvkHCLJ6P64OWUoFS57HMfi6ku8oLp PPFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id; bh=1qEMlewzMGHslusVrsuvEoXgV1HjVNiGsiufIlq3SC4=; fh=ez+yYIN2+t1/A1KtVD1essDQ6+anTTnZTbSXjuK9WaU=; b=TyaQ7Gz8Hkgt7hpLK6rpBeCjUQacI/ZtMF2Qg9ekG8rxN2wnFO4rkoTcOb9ZO3K1Xp TEnabvALHp97iiF60pyk/a3PlrVuebr++Dd6RX/7dcH1XnM5a4avWYvhAW0ZW9J8nrgv Ffb1n9O5DINNxVNgmxFfSa3nY1TuEAJcPL3W1LuVVvx9C1LKF/IG+TXS4dtXP2g231Al wL/SQvGvxF55MkJFspXKUBA0aYo0SIOlI0QCEJ4h94G0KmcUBPUB5QrvbSFBiH37pFm9 iX9xWr21o5pU/6tla8baNYe+KtOQQvBiaOTh3DH0IJ6zY9DDeqK65FuvNY0sJJnSpFHt VCww==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 4fb4d7f45d1cf-6a043b3cfd2si33902a12.0.2026.07.28.08.29.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Jul 2026 08:29:06 -0700 (PDT) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.139] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 66SFT5b6010804 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Jul 2026 17:29:05 +0200 Message-ID: <35ef69cb-0dd6-45b2-b6e5-0477d4cc185e@ilbers.de> Date: Tue, 28 Jul 2026 17:29:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] bootstrap: directly deploy via sstate cache To: Felix Moessbauer , isar-users@googlegroups.com References: <20260721150415.845260-1-felix.moessbauer@siemens.com> Content-Language: en-US From: Zhihang Wei In-Reply-To: <20260721150415.845260-1-felix.moessbauer@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, 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-Original-Sender: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@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-TUID: hoYD7/zXEEvx Applied to next, thanks. Zhihang On 7/21/26 17:04, 'Felix Moessbauer' via isar-users wrote: > To simplify the sstate handling (including cleanup), we deploy via > sstate-outputdirs. > > Signed-off-by: Felix Moessbauer > --- > meta/classes-recipe/bootstrap.bbclass | 5 --- > .../isar-mmdebstrap/isar-mmdebstrap-host.bb | 2 +- > .../isar-mmdebstrap/isar-mmdebstrap-target.bb | 2 +- > .../isar-mmdebstrap/isar-mmdebstrap.inc | 34 ++++--------------- > 4 files changed, 8 insertions(+), 35 deletions(-) > > diff --git a/meta/classes-recipe/bootstrap.bbclass b/meta/classes-recipe/bootstrap.bbclass > index 51cd2517..c1a59fd2 100644 > --- a/meta/classes-recipe/bootstrap.bbclass > +++ b/meta/classes-recipe/bootstrap.bbclass > @@ -226,8 +226,3 @@ python do_apt_config_prepare() { > aggregate_aptsources_list(d, apt_sources_list, apt_sources_out) > } > addtask apt_config_prepare before do_bootstrap after do_unpack > - > -CLEANFUNCS = "clean_deploy" > -clean_deploy() { > - rm -f "${DEPLOY_ISAR_BOOTSTRAP}" > -} > diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap-host.bb b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap-host.bb > index 6de9c21a..fa4b76a6 100644 > --- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap-host.bb > +++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap-host.bb > @@ -7,7 +7,7 @@ > > Description = "Minimal host Debian root file system" > > -DEPLOY_ISAR_BOOTSTRAP = "${DEPLOY_DIR_BOOTSTRAP}/${HOST_DISTRO}-host_${DISTRO}-${DISTRO_ARCH}" > +DEPLOY_ISAR_BOOTSTRAP = "${HOST_DISTRO}-host_${DISTRO}-${DISTRO_ARCH}" > > PROVIDES += "bootstrap-host" > > diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap-target.bb b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap-target.bb > index a9695d44..9b51ab88 100644 > --- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap-target.bb > +++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap-target.bb > @@ -7,7 +7,7 @@ > > Description = "Minimal target Debian root file system" > > -DEPLOY_ISAR_BOOTSTRAP = "${DEPLOY_DIR_BOOTSTRAP}/${DISTRO}-${DISTRO_ARCH}" > +DEPLOY_ISAR_BOOTSTRAP = "${DISTRO}-${DISTRO_ARCH}" > MMOPTS ?= "${DISTRO_MM_OPTS}" > > PROVIDES += "bootstrap-target" > diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc > index a2e15627..994da174 100644 > --- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc > +++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc > @@ -13,6 +13,7 @@ DISTRO_BOOTSTRAP_BASE_PACKAGES += "locales apt" > DISTRO_BOOTSTRAP_BASE_PACKAGES:append:https-support = " ca-certificates" > > BOOTSTRAP_TMPDIR = "${WORKDIR}/tempdir" > +DEPLOYDIR = "${WORKDIR}/deploy" > > # Fix for /var/lib/apt/available while maybe-jessie-or-older hook do not work > MM_HOOK_JESSIE = "/usr/share/mmdebstrap/hooks/jessie-or-older" > @@ -129,7 +130,10 @@ do_bootstrap[vardeps] += " \ > ${DISTRO_VARS_PREFIX}DISTRO_APT_SOURCES \ > bootstrap_cleanup \ > " > -do_bootstrap[dirs] = "${DEPLOY_DIR_BOOTSTRAP} ${BOOTSTRAP_TMPDIR} ${WORKDIR}/trusted.gpg.d ${WORKDIR}/sources.list.d" > +do_bootstrap[cleandirs] = "${DEPLOYDIR}" > +do_bootstrap[sstate-inputdirs] = "${DEPLOYDIR}" > +do_bootstrap[sstate-outputdirs] = "${DEPLOY_DIR_BOOTSTRAP}" > +do_bootstrap[dirs] = "${BOOTSTRAP_TMPDIR} ${WORKDIR}/trusted.gpg.d ${WORKDIR}/sources.list.d" > do_bootstrap[depends] = "base-apt:do_cache isar-apt:do_cache_config" > do_bootstrap[network] = "${TASK_USE_NETWORK_AND_SUDO}" > > @@ -259,10 +263,7 @@ do_bootstrap() { > ${@get_distro_components_argument(d)} \ > "${@get_distro_suite(d)}" \ > - \ > - "$bootstrap_list" > ${WORKDIR}/rootfs.tar.zst > - > - # Finalize bootstrap by setting the link in deploy > - ln -Tfsr "${WORKDIR}/rootfs.tar.zst" "${DEPLOY_ISAR_BOOTSTRAP}.tar.zst" > + "$bootstrap_list" > ${DEPLOYDIR}/${DEPLOY_ISAR_BOOTSTRAP}.tar.zst > > if [ "${ISAR_USE_CACHED_BASE_REPO}" != "1" ]; then > deb_dl_dir_export "${WORKDIR}/dl_dir" "${BOOTSTRAP_BASE_DISTRO}-${BASE_DISTRO_CODENAME}" > @@ -273,31 +274,8 @@ do_bootstrap() { > addtask bootstrap before do_build after do_generate_keyrings > > SSTATETASKS += "do_bootstrap" > -SSTATECREATEFUNCS += "bootstrap_sstate_prepare" > -SSTATEPOSTINSTFUNCS += "bootstrap_sstate_finalize" > - > -bootstrap_sstate_prepare() { > - [ "${SSTATE_CURRTASK}" = "bootstrap" ] || return 0 > - > - # this runs in SSTATE_BUILDDIR, which will be deleted automatically > - cp -a "${WORKDIR}/rootfs.tar.zst" ./bootstrap.tar.zst > -} > - > -bootstrap_sstate_finalize() { > - [ "${SSTATE_CURRTASK}" = "bootstrap" ] || return 0 > - > - # this runs in SSTATE_INSTDIR > - # we should restore symlinks after using tar > - if [ -f bootstrap.tar.zst ]; then > - mv bootstrap.tar.zst "${WORKDIR}/rootfs.tar.zst" > - ln -Tfsr "${WORKDIR}/rootfs.tar.zst" \ > - "${DEPLOY_ISAR_BOOTSTRAP}.tar.zst" > - fi > -} > > python do_bootstrap_setscene() { > sstate_setscene(d) > } > - > addtask do_bootstrap_setscene > -do_bootstrap_setscene[dirs] = "${DEPLOY_DIR_BOOTSTRAP}" -- 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/35ef69cb-0dd6-45b2-b6e5-0477d4cc185e%40ilbers.de.