From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6519112020741062656 X-Received: by 10.31.16.211 with SMTP id 80mr23626602vkq.47.1517850377111; Mon, 05 Feb 2018 09:06:17 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.176.32.164 with SMTP id y4ls1560149ual.2.gmail; Mon, 05 Feb 2018 09:06:16 -0800 (PST) X-Google-Smtp-Source: AH8x2269nq3oGiyDaebywChNkrfvGGNJko4S4YmSw8EhBLJxLXjXcyHk3fUg8SF4Yil4ebmFLa0J X-Received: by 10.159.51.207 with SMTP id y15mr3816220uab.65.1517850376824; Mon, 05 Feb 2018 09:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517850376; cv=none; d=google.com; s=arc-20160816; b=TcNPJy/GBybjhIi5uGY2ZEaAR+qNgJupp/czo25OP+ZxgekHMlBeSo5ExDFijyhGpG A91roDnxHP9aPuSoirnQSIsUvRaojWRdNGl6aJ3ffMNvppfZDoOPvsPDP2rjIgO4WZTd I+02xSetf4c54mb876tT1KrJDpa/5svWUtIja2FJQZZ0ll74r4IJgxhMXm218KyruGNW SAt64/a5nd2AUpZDpnU8q/8/HYub/Dz04tCRXuuJ0f22K0VlZ1r0p6UG81JPMkikF0Ny JPUv14tlCxGMeaIxc/GihbGRUeXQKypnZMPncYMJWRdQe1uTrAo1mKHo7doKgbXPpQ4P gnag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=6wC0XV0m85noyd58WFPBIZtHOUaDn7qelSul2j8LJ3Q=; b=SaElFrQ/eeKODFl+JAmaSy9deQOKkrPSHsE82p4aBkH3ZU/bClXVReGeep4a1kgBF3 gj0j+69Cg3VbWIbsHGZ82T2unmiv3qJ7fswV3XZBJyzfQ2KDqAz+J+hXvaf5hBntuOJa sdxcbjCi+EuI8G9z2OYu326tKZQxIiUrTXNissHd+v7eyHKjLxUWXAR+OxRwCTjenVPH GgbZL8eoBNA8TOfZNDVzySo1pgVZXXUQHQBvOZPUx4O/pwxQO5YMGi+HphcRMwe6M4WL bcI5hYcI7vf/kk+b9nf8hV+jZc5gXG17m8iIMyJB/S55xRQkb6OXIAgSpC9fs2E5z2Fu TMNA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id s27si803466uab.3.2018.02.05.09.06.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Feb 2018 09:06:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w15H6BlF025553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 5 Feb 2018 18:06:13 +0100 Subject: Re: [PATCH 1/2] buildchroot: Do not call 'apt-get update' To: Jan Kiszka , isar-users@googlegroups.com References: <20180205164347.28375-1-asmirnov@ilbers.de> <20180205164347.28375-2-asmirnov@ilbers.de> <61174b4b-84a8-aca5-f163-5137fe932e81@siemens.com> From: Alexander Smirnov Message-ID: Date: Mon, 5 Feb 2018 20:06:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <61174b4b-84a8-aca5-f163-5137fe932e81@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: fvkroyrQoPal On 02/05/2018 07:51 PM, Jan Kiszka wrote: > On 2018-02-05 17:43, Alexander Smirnov wrote: >> We should not do this to avoid local Packages.gz update. >> >> Signed-off-by: Alexander Smirnov >> --- >> meta/recipes-devtools/buildchroot/files/configscript.sh | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/meta/recipes-devtools/buildchroot/files/configscript.sh b/meta/recipes-devtools/buildchroot/files/configscript.sh >> index 9813c9a..458c94b 100644 >> --- a/meta/recipes-devtools/buildchroot/files/configscript.sh >> +++ b/meta/recipes-devtools/buildchroot/files/configscript.sh >> @@ -44,5 +44,4 @@ mount -t devtmpfs -o mode=0755,nosuid devtmpfs /dev >> >> #configuring packages >> dpkg --configure -a >> -apt-get update >> umount /dev >> > > Can you also explain why we (no longer?) need this? Just to ensure that > there are no subtle issues waiting to be surfaced. Multistrap calls 'apt-get install' for the list of packages, so at this point the '/var/lib/apt' folder is created. So the upstream state used to generate buildchroot is cached. The line I removed in this patch, is called *after* rootfs generation, so upstream state in cache could be possibly updated, do we need that? Alex