From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7041912760086560768 X-Received: by 2002:a2e:809a:: with SMTP id i26mr15297711ljg.416.1639646559350; Thu, 16 Dec 2021 01:22:39 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:234c:: with SMTP id p12ls658795lfu.0.gmail; Thu, 16 Dec 2021 01:22:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwc2O3yhQ9jYODygglmKWQmSqYAGUHBe3LSmJ18ntQ0vGyczRXU72sty3wuQgi6YnM1b//J X-Received: by 2002:a05:6512:3e0a:: with SMTP id i10mr13830765lfv.4.1639646558270; Thu, 16 Dec 2021 01:22:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639646558; cv=none; d=google.com; s=arc-20160816; b=fEKyMf4cPHuYacNNqeIZN1UuyyjH7W+GzkAKX0Wq+pe7mItCeLM/2avW8/HSpP4zLm xRWiVJNyCElotAiwpHVVtk0e+SuooHF194fhYYfJrtg0772Yu11lj0DBEYlXH9+kaYU6 9n5j8j6XjaAa8jebD3/jc6NBs4INMZ0wxqZJeWW7m6TtRbGhZeCAxGwnen/sXPDBjo++ S0mqrhNMaJ5xWPxIoPq7BjbMhwi+R66xL0yKCQ8YWx7laIwlNmbt4mJnLIPg3p1iaUp7 WgGX0vVM7vOnccOjptlnPzoVJ7Aii6e+oTp+4L0B2AbcQJYG1Us51h29EBfOdoHtIBPr MeJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=GQyyj4CDE3f4d2loEdIdh3JQJeE49Ctb/HLzQBarXTo=; b=YVer8ZP8ENg1v543BAyzThhHNXCCdci6vKqFT5FHBFtvoEQVv6ZwUcXINBUCnOXJVD IxI3A2Xd9UENcMoLkNVgMgsFZVlHbmJtJsxRQaz1ErUtm9S0g4cGQAzPgoxHazNFjOvO uQ9lp2Uu17C4rlEhxphVt/bfsEi7FV03uZkrdo+eYPgasndxHyPToxMQllciLfN3M57L Zs/cOq9nwCSaGZKXw+gv1eyja8z+I0w6cAtHsPg2xqFak6D4qkwyTM1+lbt2wnvlAqt/ OnFu5Uc4Oi/xjgKTfI3ux3YQ1Cy9POhsw/xWvJG/2/py28yxfolZCoutZ/lVgGxLhm2J FU2Q== 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 Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id c15si280779lfv.8.2021.12.16.01.22.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Dec 2021 01:22:38 -0800 (PST) Received-SPF: pass (google.com: domain of amikan@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 amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from [192.168.67.164] (mm-214-81-214-37.mgts.dynamic.pppoe.byfly.by [37.214.81.214] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 1BG9MauL012407 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Dec 2021 10:22:37 +0100 Subject: Re: [PATCH] sstate: Make image cache imagetype-specific To: "Schmidt, Adriaan" , "isar-users@googlegroups.com" References: <20211215125748.299859-1-amikan@ilbers.de> From: Anton Mikanovich Message-ID: <71383be7-3921-7d1f-bff2-507fb655ac7a@ilbers.de> Date: Thu, 16 Dec 2021 12:22:31 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED 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-TUID: bixc4ISQA3uh 15.12.2021 17:33, Schmidt, Adriaan wrote: > Actually, now that IMAGE_FSTYPES supports generating multiple images > with different types at once, multiconfig is the wrong way to go in > this scenario. > > When creating the same two images via IMAGE_FSTYPES="targz-img cpiogz-img" > there is no problem, and we can then even go one step further and > remove the ${IMAGE_SUFFIX} completely. > Eventually, this will enable better sharing (and caching), e.g., in this > case both images are built from the same rootfs, which is what is > stored in the sstate-cache. > > Also, when removing IMAGE_SUFFIX, the task-once-stamp logic from isar-events > will warn that something is wrong in case IMAGE_FSTYPES is set in > multiconfig (which is exactly what we want): > > ERROR: Detect multiple executions of do_image in /work/build/tmp/work/debian-buster-amd64/isar-image-base-qemuamd64/1.0-r0 > ERROR: Rerun a clean build with empty STAMPCLEAN and compare the sigdata files > > Adriaan Making different image types share the same rootfs sounds really good, but its separation was compelled. Some architectural changed will be needed to make it work. -- Anton Mikanovich Promwad Ltd. External service provider of ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn, Germany +49 (89) 122 67 24-0 Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov