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, 26 Oct 2026 12:19:45 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-ej1-f58.google.com (mail-ej1-f58.google.com [209.85.218.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 69QBJZXk010117 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 26 Oct 2026 12:19:35 +0100 Received: by mail-ej1-f58.google.com with SMTP id a640c23a62f3a-c3613c35145sf324574766b.3 for ; Mon, 26 Oct 2026 04:19:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1793013570; cv=pass; d=google.com; s=arc-20260327; b=k7HMBMYtBL93yhEgjb6K0ZTSz8g+KbMp7uvgcrhRnqgoHtxMkHfLtXbC+HBR9un0qa Kg66Cm/QywyNsD3zED61JhTtnnazAAJok986XdWr9npILNl6ipwF2rZw0jzGwcmAJaxu Kn5aKeTLBhWYwnhqVSJJOfrVTvMH802JpI/n4T6JkPRYyVDqs+622ABIQhPSHi6lGXQ+ kzUIuDGpwftFCG5q6IESUbZujCeGPGuwcDpTb9B94g9eO0bxUhXQPW+3uZZf6SmDbF0P YA+pPMfIDu/gQQijvHjxgMImE0WeuWo/0hBv28/ejtpyMwczOsi37YYx6aZTgEyL5kDo wdSw== 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=2xZgeYLTdPt3jGHlDpczVsr4hBt0D85Gunh4rtkPkwM=; fh=eGMf31ubKmkOLbEQ05tSqfCsshEz17+gNlx6IcDK9c4=; b=axhmKSHRi7J9LZLHodVLopmMKGxigog6mvbQxnej3wCWCnKMTe1C4nJeuAoeOx2IMH y6Y2lB22bhvDDKPZPuPm7uxeOyY++gQ365do1BnCqiO9bbWsxG+tLzaB0VhhPjNFCQbk 9/nMzh12WA1APmeolmdk7VbXlpmeLpHCMS5/LRaDV7rMML9h/lPUYr2e9MslZZN/rbX6 jewSOOQ9o1JMDcfEccoxE/8bnqP9mjNe0sRHY434oh5I8rKHHTX/PWoI3XEJc5TJYm7o BCPdhcEgae58UwmAQebScunbgDVzXP87AlcXlO2HjZZGIVV4N2fDBYz5ZR6Ul3Osm7V3 qmog==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=akarpovich@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1793013570; x=1793618370; 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:in-reply-to:from:content-language:references:to :subject:user-agent:mime-version:date:message-id:content-type:sender :from:to:cc:subject:date:message-id:reply-to:content-type; bh=2xZgeYLTdPt3jGHlDpczVsr4hBt0D85Gunh4rtkPkwM=; b=llmkyL9Vc7xJAHo0nj1nOcxs75tfiywqD+WkzU02c1NaMf0EMk9KlkmbcsezxbyJVX JOvDz7GtMLYiuW/Ac5C8RI7HZkzP7QFdJaZQDbSjaca2ouderOP+iLxA9iawtsTLPBKM XB1C8EkhtoyLmVfY/+OfwPRDZ724eyQxPUtiZyab/9RFiF2rxPbKeGb2X2SIOQcTv6ar 5K4KRupSbz3OwWHmv0+FdRoCMVUKBf9wUh+b5xs2sVzXb3jM8cZjIOkfiduKYEVICtyR R5Wf2iBp4fP52YBMC7tc3+LC4CEsbpcCuIDf4Y4V7r6HMO5IYfw1+H+V1yIGAzmKtnh6 2D6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793013570; x=1793618370; 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:in-reply-to :from:content-language:references:to:subject:user-agent:mime-version :date:message-id:content-type:x-beenthere:x-gm-message-state:sender :from:to:cc:subject:date:message-id:reply-to:content-type; bh=2xZgeYLTdPt3jGHlDpczVsr4hBt0D85Gunh4rtkPkwM=; b=ItqJEDT5WYeNxVQ855t3CA3nHKuYg7tj50RSLgzioshU2bVYcfn+N2uzkegHKF4blr 1f6qZbI2/89ZXJx1G5wx+JxR3/kQZrt4RgrxfH8GUjgsZOh46fpO8edpcz9FfZzUNtUI +iygoI8QNx8XgAPgstbwVFPswHeSxS0gMznDcGp849l13O9Nj9RIPCcYI8ooKEP+2WmK 7+MMOavnlLyw4oYm2fiYJJO16jrhF3IPbcFsPLNeD9gcPWqWb7UE654wDZNuDPBZZZLD wvmbBP3U5OQUBZ+mUwdeDSfA0E3WNK6Jy6tTj32rpvTxqMKs89kOAXTFjl/eFZ4fEjzC OYXA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AKwUvByMSAnXT+coJ+vekNvqKEPrYYGhb/iC0cW5cwMc0th+hphxKXcA7DkKvQRvZfIkW3viip45@ilbers.de X-Gm-Message-State: AFq9FYIwvah9Dce0ES6TP6+rzXw23uPEoxmHuDb/t9Cy9gvUPsag99Si kHSZ/gnMvnt6UJKsVGXbLWCXYsawLWhqCTnyapK+FyvLrom6Hvaojbdb X-Received: by 2002:a05:6402:5506:b0:6b1:ef5a:6719 with SMTP id 4fb4d7f45d1cf-6b442fcb0f3mr7664428a12.10.1793013569536; Mon, 26 Oct 2026 04:19:29 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ATskLdd+5fGEIHnfYNdDbt9xRWKW6Dt0mRV2/uXIa8FJODUHtA==" Received: by 2002:a05:6402:210c:b0:6b4:64f2:c355 with SMTP id 4fb4d7f45d1cf-6b464f2c643ls362391a12.0.-pod-prod-04-eu; Mon, 26 Oct 2026 04:19:27 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBz3DeDia+iP6vayQ9y26cBTK7pg67fHkqMPlkry3WfbFsYocX+Xbdu5Le6pK4lI8sE0XebgSzdiaPEJ@googlegroups.com X-Received: by 2002:a17:907:a909:b0:c41:44f2:f7d2 with SMTP id a640c23a62f3a-c46bde5469bmr758366966b.24.1793013567414; Mon, 26 Oct 2026 04:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1793013567; cv=none; d=google.com; s=arc-20260327; b=Vf5vDOe62AwyGNc+L737+AR4gcNfZXyS/QXH19ofMHky4SNIUCO8/8ZFOog6+I7VBe m9pWgbs+BqmsGSktYf1EVxrLAQoYAlKOpNIDCOvM7aHki5aUD4EdomMAXuZ779kBIhlQ qOdyrG3UhfIDXYcT3+/A1x2Kv0jq9arbI1H/x9uzbkogBSJHm8AO9W14fRdj9eCpmmzF PhbF89SgaurV3asb5suuvirY1oCXoUggq2lFson7ecriAEpIbigIS4Jh7LLr2jWwSS3p 07XYm1JWs6ZW182EPEIINjHsIUKEgyemDJmP3tUAWqBGWdsfsdXLmty7m9ckJpJVXoWC K7+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id; bh=jP2xp19NTON3iDAjbM4DZ1DKqmv8AtKjlo0BgcFLyVg=; fh=GuT/7Vjo4S5f9RZ6JA4n2bSU6svxVQ84hkMefeU9fGM=; b=BTSIkyNwBK9zqUh6PK3MF6mDfZ1C1W+SiH4tcYp7eyFwvjZNv+M64H6j46odxxWkid FnFHSHqOH0FFI03ie/j4MBDjYNCCO8NNjkTMGKbPWeILknsZLk2qjnv6wv6iTKl1t3g/ 5sSw+bvTyt97MnyJvUL9Xw5lmzTHOeucfcyjlF9raiy4IVmtedgptdgBtTea2wuR7vXa srNuOHUxN1IuQ/T5bubnbS6tc3NxW3Fq7dUDSwCwm+rnRkOx12WwD5y1CfZzXXsS1Bfu kOtMLysuZI4f0KUPILT6V4h2DRanFNkepUSzR43dxlXSNTRNtJvGVQypTNNmdr/+19tX b87g==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=akarpovich@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id a640c23a62f3a-c46bd6490a5si8731766b.11.2026.10.26.04.19.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Oct 2026 04:19:27 -0700 (PDT) Received-SPF: pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [10.54.4.147] (62.122.174.6.serverel.net [62.122.174.6] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 69QBGfsr010088 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Oct 2026 12:17:26 +0100 Content-Type: multipart/alternative; boundary="------------PIxDeBrEI8lONAlvwhU0vbqN" Message-ID: Date: Mon, 26 Oct 2026 14:16:41 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] rootfs: clean rootfs dir before unpack from sstate To: "Moessbauer, Felix" , "isar-users@googlegroups.com" References: <20261023133338.32200-1-akarpovich@ilbers.de> <89be46116224a626aafc4a246f7b41e6bed6bbb8.camel@siemens.com> Content-Language: en-US From: Aliaksei Karpovich In-Reply-To: <89be46116224a626aafc4a246f7b41e6bed6bbb8.camel@siemens.com> 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,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-Original-Sender: akarpovich@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=akarpovich@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: qFOcPmNNGaZR This is a multi-part message in MIME format. --------------PIxDeBrEI8lONAlvwhU0vbqN Content-Type: text/plain; charset="UTF-8"; format=flowed On 10/26/26 12:47, Moessbauer, Felix wrote: > On Fri, 2026-10-23 at 15:33 +0200, Aliaksei Karpovich wrote: >> In case when rootfs is restored (unpacked) from sstate, we have to clean >> rootfs dir because it can contain files from previous build which should >> not be included in current rootfs and will not be deleted during unpack. >> --- >> meta/classes-recipe/rootfs.bbclass | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/meta/classes-recipe/rootfs.bbclass b/meta/classes-recipe/rootfs.bbclass >> index 4fd627c2..99e701e9 100644 >> --- a/meta/classes-recipe/rootfs.bbclass >> +++ b/meta/classes-recipe/rootfs.bbclass >> @@ -776,6 +776,7 @@ rootfs_install_sstate_finalize() { >> # - after restoring from cache, there will be a tar which we unpack and then delete >> if [ -f rootfs.tar ]; then >> run_privileged_heredoc <<'EOF' >> + rm -rf ${ROOTFSDIR}/* > Hi, this skips hidden files. Can't we use > > rootfs_install_sstate_finalize[root_cleandirs] += "${ROOTFSDIR}" > > instead? Then we could also avoid the following mkdir. > > Felix Hi, I thought about it, but in this case logic will be different, the ROOTFS dir will be deleted always. But in current implementation it's deleted only if rootfs.tar exists. > this skips hidden files It will skip hidden files only in root. Is it real case (hidden files in root)? I can change it to 'rm -rf ${ROOTFSDIR}'. Aliaksei > > >> mkdir -p ${ROOTFSDIR} >> tar -C ${ROOTFSDIR} -xp ${SSTATE_TAR_ATTR_FLAGS} -f rootfs.tar >> EOF >> -- >> 2.53.0 >> >> -- >> 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 toisar-users+unsubscribe@googlegroups.com. >> To view this discussion visithttps://groups.google.com/d/msgid/isar-users/20261023133338.32200-1-akarpovich%40ilbers.de. -- 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/dc6bebf9-ca39-4342-85da-e7c3dc8a4502%40ilbers.de. --------------PIxDeBrEI8lONAlvwhU0vbqN Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On 10/26/26 12:47, Moessbauer, Felix wrote:
On Fri, 2026-10-23 at 15:33 +0=
200, Aliaksei Karpovich wrote:
In case when rootfs is resto=
red (unpacked) from sstate, we have to clean
rootfs dir because it can contain files from previous build which should
not be included in current rootfs and will not be deleted during unpack.
---
 meta/classes-recipe/rootfs.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes-recipe/rootfs.bbclass b/meta/classes-recipe/rootf=
s.bbclass
index 4fd627c2..99e701e9 100644
--- a/meta/classes-recipe/rootfs.bbclass
+++ b/meta/classes-recipe/rootfs.bbclass
@@ -776,6 +776,7 @@ rootfs_install_sstate_finalize() {
     # - after restoring from cache, there will be a tar which we unpack an=
d then delete
     if [ -f rootfs.tar ]; then
         run_privileged_heredoc <<'EOF'
+        rm -rf ${ROOTFSDIR}/*
Hi, this skips hidden files. Can't we use

rootfs_install_sstate_finalize[root_cleandirs] +=3D "${ROOTFSDIR}"

instead? Then we could also avoid the following mkdir.

Felix

Hi,=C2=A0
I thought about it, but in this case logic will be different, the ROOTFS dir will be deleted always.
But in current implementation it's deleted only if rootfs.tar exists.

> this skips hidden files It will skip hidden files only in root. Is it real case (hidden files in ro= ot)? I can change it to 'rm -rf ${ROOTFSDIR}'. Aliaksei

=20

         mkdir -p ${ROOTFSDI=
R}
         tar -C ${ROOTFSDIR} -xp ${SSTATE_TAR_ATTR_FLAGS} -f rootfs.tar
 EOF
--=20
2.53.0

--=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/20261023133338.=
32200-1-akarpovich%40ilbers.de.

--
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/dc6be= bf9-ca39-4342-85da-e7c3dc8a4502%40ilbers.de.
--------------PIxDeBrEI8lONAlvwhU0vbqN--