From patchwork Fri Oct 23 13:33:33 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aliaksei Karpovich X-Patchwork-Id: 5559 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 23 Oct 2026 15:36:14 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f58.google.com (mail-lf1-f58.google.com [209.85.167.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 69NDaDlf025049 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 23 Oct 2026 15:36:13 +0200 Received: by mail-lf1-f58.google.com with SMTP id 2adb3069b0e04-5be42ea8980sf519778e87.2 for ; Fri, 23 Oct 2026 06:36:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1792762568; cv=pass; d=google.com; s=arc-20260327; b=YKiJRVMGFeQ0nPSqE7y4XJ6HCMoWuFe77ChRnL0w8VRTM0PQ8l5MBKPH9zMJjIhMIQ ZigsNlvBDdoHLeaXFWABz1EwkDHWGx6OldOEoimQWEuQKBe99H/HXBm7rAvkmC39yAuR nfx2xnkVJcqZcJPq/W+SCy/NdfHJJi9BmNBIjKMgD0jFkFYBiFWryrUcRz/aJQTEYJgo mJD6mmKBVCcMVYrkzNvnNyhq5agBgk/ZaNKdXGG9hC3gxrYA3jcQDntRCMNgdIPd/QwR i/fH9C8KtxicIb6jL7RnXzJm/LsyzppooeuW47Yq1HlEBnZ+FgHwTH3nHQAKS8C3QUgw djvQ== 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:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=Yfc6BL5mBQ0xFxyocqbrYuWzSW/PalXVdqGDsA+aB+Y=; fh=BJy4atJJBW6cfuF+e+WP4GxmqQ6jAnDnLTK2EExlqd4=; b=pS7OQ50Ckkzhl3zAnhxlq8FJKUI3m4XXkxDbEUtWSFMbhuk4oKF3WmIe0JRWW+CSlX k/wWhUOxPwovAPm5+D2EFLsfoC25LbopduSDwBjmA8azjBPK8MNG4ZwRCM9UZvD/X7g9 7xVBEHpPTrOBPngVHAF9cOcdSOVSKlENDVm6AqhkBDCKwl2oPfAvIiCP4J+WzNOfnNpb VuBo2yFkTTHmOuMKY0F96nPCW6fZEIqtv0KqROdbUO7Q5PFgRutiXSCyfNfuPiYjAz/p s4gU4jfJd3g52GBUPagJGWBEmRV+rNHGXxMzOp6Mtq/auunrVYOc3H/c1ZJ0MoKTcs8g ha9g==; darn=isar-build.org 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=1792762568; x=1793367368; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-type :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Yfc6BL5mBQ0xFxyocqbrYuWzSW/PalXVdqGDsA+aB+Y=; b=xGxSkP6nv8XvDVFETxQPG7xgY3RQVOYeQRiUxy083iF5WEu/6P5JfPoI2qPm6qrZAN zWdCc4+lkAdM/4nMHI0SvYV58V/0a2p4ENdsxcGbV3xrRr6Usm4ThqJ2x7xjcRlVYtnR J99W/dCNiDN9qviIzW5plh6bXzsp6CNJuIWi85oMQeLlI273aGA2gMQOm+Uzrs0+HiLE HVcmhQNt7Q0g7ysyvTP57mKiTYTVF3gAX9K1tgdpQJDbqoCxriAp7Mdh5zbYFnunyOlo bbDUVV1Blqrxc/suLPhMGIo8Nti5L1QjQmGVJs4fXCAp4z26LvCldV6dh4wNc4AkwJmQ DMaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792762568; x=1793367368; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :content-type:x-original-authentication-results:x-original-sender :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:content-type; bh=Yfc6BL5mBQ0xFxyocqbrYuWzSW/PalXVdqGDsA+aB+Y=; b=HVQ6cWhCgoBx0ZxIfB9R2ztWsp2UT1fc85qMbRswU9kBncL0o8iTs0p0DxZ4SH8HoK aL3/cSIewrg5IoxUyYn5zZ9Z8KkuMNdI0RXwBvWivvoKSGNHeX3v1fcfHYYRZyCIYVYd GPFcCvq+OIWpbk2SXMCnH4jRUHQoEberRvyaOTES67/ODsjFH9TU3H2nOD2dv0/TovGi 2apxYjbb6SYYFTCYVw4Cz2jrF0ebHa/odjeWUPQ+U2H4l5lHe/UoJwM7dWEZ2h6gnK7a HMO8HblKrsiDM/t3ReYCug2WhRMGKRonktzweIO+O4JJzu+H8551991GASbEwrH/6LZv WI6w== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AKwUvByXsCVxtOKmFgHG29hmf+hIbLJfyI+hthte93d8hYfpJ/70V8CJ3mAmxAcrhZlGMmki9ay8TuE=@isar-build.org X-Gm-Message-State: AFq9FYKFnX1IyBW99FoP631OVUGm6pYjDF28aSzEEyA42Y0uaz4tsrou 38S75zN2iYRMuVRUY6QqQ2nRjeWjTsmbU/13Tm8G6O2Lj/gd2+qtvf53 X-Received: by 2002:a05:6512:2389:b0:5be:4f02:52fa with SMTP id 2adb3069b0e04-5bfb09f5357mr837540e87.22.1792762567531; Fri, 23 Oct 2026 06:36:07 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ATskLdeQrDJ0OHQpgqrFGKcEODeW5cSSxx8+xxLKpP34b23y2A==" Received: by 2002:a05:651c:25d1:20b0:3a9:a53f:81ba with SMTP id 38308e7fff4ca-3ac6520e19bls2182681fa.0.-pod-prod-09-eu; Fri, 23 Oct 2026 06:36:04 -0700 (PDT) X-Received: by 2002:a05:651c:31da:b0:3ab:10e7:e080 with SMTP id 38308e7fff4ca-3ac661928aamr5443341fa.0.1792762564071; Fri, 23 Oct 2026 06:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1792762564; cv=none; d=google.com; s=arc-20260327; b=SllMgLvA8m3RZVIz2iBiLPgsakcKxmflSWGeY8GQY7O+VeTwQJ/EwqbTEzkQYXwQxg ye+zClPEbWwue1JQrUZvMKPjaq3ax5ULBUlCkqjXD598mmsxlGXzUfvv7PlD0wxCo8O4 0oWz2e2PqPAw8yNiNLTi9yIas76VWVE0LqEqY4ZLiWdev2FGJN4l5Wf7zK8c7n0CyT5g sYkS4WTNFnbKwphWVS9lvNd2H/WL1Attrk4OgL8kD+YE33dt2yceUC6AgdaUNhn6pwVj LZ3Cz10cg5wpVX8VJzjjGB3aRfphBMWf8FPI0DHCucqcMraS7FF4W9RXdn0P7S5SsEIp gHvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=2Iu6gYDNR7R4daDE/ivKBRpdM5fPd77yPyLcIAqQAJA=; fh=u+3kXEMzY4uVhDBiujW2QUo7NnpMLrGEgMQBYpCTRN4=; b=B7PfafqJvFIrcW8kSmREqo347+hqmTU2tSdwo+h8UXDzqiVaHAWTA3cunvfjNnKG9I 9Sl+ULTcNtAqOAjDVUuzTEoQNF2+ZU/x/F1fUGskBMMl7mgwWxiKhzRsvrCbh3yosrTy HpImSUerP+YH3UQvoLmrUFrIpdGpbKqJmlksPKnYjcM7lHIqH/DPR/HOVPNB2TS+k4Co S1G1GC1nNi6B0VfPSLgslm6IKaqQFCjymW0TBo00m4pE4BdXKfWUcyLjPEU8BvCy9CD/ DzIIs3yDPeMYTaPDmPdTDuJWQxwIA9nv33ofOkkRYIAF9xoKH8o/foDktIoctv+QtSJ6 uaww==; 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 38308e7fff4ca-3ac65d00e0dsi274411fa.17.2026.10.23.06.36.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Oct 2026 06:36:03 -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 laptop-0xxx.promwad.com (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 69NDXhYh025025 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Oct 2026 15:34:02 +0200 From: Aliaksei Karpovich To: isar-users@googlegroups.com Cc: Aliaksei Karpovich Subject: [PATCH 1/2] rootfs: clean rootfs dir before unpack from sstate Date: Fri, 23 Oct 2026 15:33:33 +0200 Message-ID: <20261023133338.32200-1-akarpovich@ilbers.de> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 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: 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= 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}/* mkdir -p ${ROOTFSDIR} tar -C ${ROOTFSDIR} -xp ${SSTATE_TAR_ATTR_FLAGS} -f rootfs.tar EOF From patchwork Fri Oct 23 13:33:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aliaksei Karpovich X-Patchwork-Id: 5558 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 23 Oct 2026 15:36:14 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f63.google.com (mail-wm1-f63.google.com [209.85.128.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 69NDaDZC025051 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 23 Oct 2026 15:36:13 +0200 Received: by mail-wm1-f63.google.com with SMTP id 5b1f17b1804b1-4a1df6c2937sf7729495e9.0 for ; Fri, 23 Oct 2026 06:36:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1792762568; cv=pass; d=google.com; s=arc-20260327; b=bUrt9MPtlV1Ack1RlAXxFKHn7tNhOloP6b5D9tdOCQxdBD1CmoOttw0O/ZVWGRaerf f7BdlDL1AN7TW3u8957udgs9rualY0wZxLCCR5XhUqgz3kVAnUji9+dauLyg7kNEj/9a KCzJ5wLo7h9Iw1OET2xCmIQe9hItjMGy6t4Yht7hFCLzyje0f2TaCkPTSqMLs1uY/0fJ mse74ciFoOw4Qu0fKFRoi2V058BUD85XQamtiOuV1NNmWjTY8P1yrNhgdA27qa5p+1lo M92upPUFEDw1q1bqPMozq7Z1Nd1n9sftEZhY6Klc7BVkKPp7J7amQCK+2cIuTS4WcS/z gb2Q== 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:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=gJ60uH48DtJMNJXDnGfWjy6iYFesh3AOavuVLkCP5vs=; fh=NDiuyV6Vnro/n95VK6coTCt6rw1RSXVhUFsLcagbkSg=; b=WBPH/v5didn3p2NSYBHNKdWhqApndYL9OSJiLr96CYCjIYkUah/6BVEgvmoerU/ycK mJSey5Y81Lc7otIIVrlN5QuRPOk2qn64y6wmRBq/AFBMvSuHJm2PdTJPPVFeeQs/NLaQ z+/xQt3egoyftvp3CTGGxqKWZ02nNDYPb0TZnc5IsNf5vxhqOO/gU7CVYqTelWoRMQ36 Mu2FTm1WNHZf1ZKFhimqrfSHBFw8xpMdeE0qsarxVIEyGIILAp2wKmHJEoQueTVafVdt NndEp4IyVX933P2FhHTeI9/3DEO5CFIHC/zcyZLPXNKL5T8eaxs5UILNUFCOR3W/pVUi AlGA==; darn=isar-build.org 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=1792762568; x=1793367368; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-type :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :from:to:cc:subject:date:message-id:reply-to:content-type; bh=gJ60uH48DtJMNJXDnGfWjy6iYFesh3AOavuVLkCP5vs=; b=o8xwxon9zVdE+DnR76IaipKl48J6oUAEVL+QLhwCm18WuSdFklMa42kP8jQIhY3V3A HsgZdHXri0G0dxpfwq/95GKZimzyiLZRhtyd+xXhLjpokn0fNGilOjDlMSchMgkkjBBC 1H8JpRsHt0Ccw14BSQL9IUa+r5O90yoEAZoQWE/0E5BJGccuPvF17OH8qDAxwiNItMV0 fj9wAbzQFC3IG8eH4UO7vv2RFmObu6LtOt6KCftMPH8opjjkPCEsJttorkhyIUqZEGzl Ur9yWO0Ryaw9q/rcMXFUqiwHs6TMp0d7syYAu0pWgjwaooB5li+0vl5dn8L9+iUIztEo k2pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792762568; x=1793367368; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :content-type:x-original-authentication-results:x-original-sender :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gJ60uH48DtJMNJXDnGfWjy6iYFesh3AOavuVLkCP5vs=; b=tJ0qODuzlIuB45U2ECOl6cgRTZ45cu2Xdp8cnbKxAPo+w3ay96LDNrHI9TXb4nHNy8 Jdy6ju0aM3lGcwPr7VN66RQym/odjeSw/R81MOvid+n98Ut3XycT95gsJ9t8kaAOLDBP ccfmnjwDYo+Fd+61uuhxaLJnToMemzRQSr76efVzp/oyE8GTa7SexTDypZBG+6fj0ioz WvlVqZPdMmvf4jsTKNRMNh6ybTy9NHjaN19LNDlNAmyh8nzyNXNIVvfAgprkbEaqgobX 9QjTLq7f047PQFw3jjkUnySZ1thpfXWHhs+5q2/m85YDjROcO7cXo1anuxHA/lZeI9OB mifQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AKwUvBxBaxwo4H/2hsBVpgpLevMkWSjAjawR+OszHBeH+4UK9IzaFpyD/+XykNMJXbEwduGe6N7984Y=@isar-build.org X-Gm-Message-State: AFq9FYKq93RVQ+pQ3czmeeiZYFj6pnGLYG7I+IUGZdIOhDUHt1aUKwab iLXBFQFgrb8UYKhbLHyr/wicK4aYfbzRswBTESeSXtIAYcg73aV2D4J7 X-Received: by 2002:a05:600c:3b0a:b0:4a0:20b4:ba93 with SMTP id 5b1f17b1804b1-4a211c869d9mr37239885e9.16.1792762567948; Fri, 23 Oct 2026 06:36:07 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ATskLdesCGAc/fxJwqmUBAbIjI/rs1+0z1hZYsNrhXfQASKI0Q==" Received: by 2002:a05:600c:c084:b0:4a0:22d5:7678 with SMTP id 5b1f17b1804b1-4a203b7c9a7ls8432425e9.1.-pod-prod-00-eu-canary; Fri, 23 Oct 2026 06:36:04 -0700 (PDT) X-Received: by 2002:a05:600c:c44c:10b0:4a2:1960:6fa with SMTP id 5b1f17b1804b1-4a219600853mr9039345e9.4.1792762564383; Fri, 23 Oct 2026 06:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1792762564; cv=none; d=google.com; s=arc-20260327; b=kaa3V3DF85Yoq3SunCUTog+VW3olFOGNe+/aPqM+Q540e2HUPquu6Bjv0sMV6niMC/ 6fB8UrvljvzduHIrmeZEg225DV7H7goSwiBguqd5p4jQPlLwMni4akiJk4eHFUbwwOfH 7pFnHSaQvk3hWDwFSJWiJTYn8D1iU4nty9WaOYvhA9U1+nv0gFxna3av9soHd9N4XCgN YOZntLXyUu8tpRdT1RJqMS7Sq/YLT1G17oniRlNO6w+4X/Hx4EvcPfOc9W+HK0ZNWnOr x8qIDUyGBe6OIvKG/O4zJXacNb3W4uoOcX2hEPkm8y7kGy2GFsaRhdYYnY4U4rChnBUC kYHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=WAFyvoX42GL9C2D7q1umf1zqpOHpb6wrQnSDoNLpzyM=; fh=u+3kXEMzY4uVhDBiujW2QUo7NnpMLrGEgMQBYpCTRN4=; b=c2E1T9+1wiW2DqDz3wXgO6NAvKWnaFkh+DMNchUOh/SKFz6Ra3fq4QQTt4gjbahda0 5K0MSsQfgoiZd40jgAZH2kmr/ZaEC5rJnhj9w/vcJWxx9LDSbSya8nsYCvXB5dbzGajI DaXOLnnnYLM+JeSAnZTFBN4z6JBjB4FrYsHDcj8HC3ydJfLQi11+dgOhzYtzWr9XpycG JfiMaCFKl8dx2uhRsM0RYJCDCiTgayQk+e1P05XMsqaMNScfXx5b2reh1sBHcfDMJt5j Dv9J44o1bmSnI7ZVGSsi8++JEr97g1IHjvFkfNnftnpCwA07EnaBDQ0/tR3YmHOERvyb neNg==; 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 5b1f17b1804b1-4a2155def83si94605e9.3.2026.10.23.06.36.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Oct 2026 06:36:04 -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 laptop-0xxx.promwad.com (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 69NDXhYi025025 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Oct 2026 15:34:03 +0200 From: Aliaksei Karpovich To: isar-users@googlegroups.com Cc: Aliaksei Karpovich Subject: [PATCH 2/2] testsuite: add test for rootfs sstate Date: Fri, 23 Oct 2026 15:33:34 +0200 Message-ID: <20261023133338.32200-2-akarpovich@ilbers.de> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261023133338.32200-1-akarpovich@ilbers.de> References: <20261023133338.32200-1-akarpovich@ilbers.de> MIME-Version: 1.0 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: 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= This test should catch the bug when user builds the same image multiple times, adds and removes some package in image, but this package is stayed on rootfs after removing. The root cause is in sstate for rootfs. Test conatins 3 build steps: 1. Build the target 2. Add some package in image and build the same target 3. Remove package from image (return back to state in step 1) and build the target again. After each step, the test checks for the presence or absence of the package on the rootfs. --- testsuite/citest.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/testsuite/citest.py b/testsuite/citest.py index 0cedcc2c..b701ed13 100644 --- a/testsuite/citest.py +++ b/testsuite/citest.py @@ -1563,6 +1563,42 @@ class SstateTest(CIBaseTest): self.perform_sstate_test(image_target, package_target) +class RootfsSstateTest(CIBaseTest): + """ + Test for correct behavior of sstate for rootfs. + Contains 3 steps: + - Step 1: build isar-image-base without any package. + - Step 2: build isar-image-base with hello-isar package only. + - Step 3: build again isar-image-base without any package. + + :avocado: tags=sstate,fast + """ + + def test_rootfs_sstate(self): + import glob + + image = 'isar-image-base' + arch = 'amd64' + distro = 'trixie' + + self.init() + + image_target = f'mc:qemu{arch}-{distro}:{image}' + hello_bin_file = f'{self.build_dir}/tmp/work/*-{distro}-{arch}/{image}-qemu{arch}/*/rootfs/usr/bin/hello-isar' + + self.perform_build_test(image_target, image_install='', sstate=True) + if glob.glob(hello_bin_file): + self.fail("Step 1: hello-isar shouldn't be on rootfs") + + self.perform_build_test(image_target, image_install='hello-isar', sstate=True) + if not glob.glob(hello_bin_file): + self.fail("Step 2: hello-isar should be on rootfs") + + self.perform_build_test(image_target, image_install='', sstate=True) + if glob.glob(hello_bin_file): + self.fail("Step 3: hello-isar shouldn't be on rootfs") + + class SingleTest(CIBaseTest): """