From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6519112020741062656 X-Received: by 10.25.160.195 with SMTP id j186mr112018lfe.44.1517909927041; Tue, 06 Feb 2018 01:38:47 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.54.2 with SMTP id d2ls953616lja.10.gmail; Tue, 06 Feb 2018 01:38:46 -0800 (PST) X-Google-Smtp-Source: AH8x224zSGZR9REGPwsS0CU5e9fz77KvzmijlzDjJjQoxd1xHoBAhug0cp9oefxUJQiGxmfBvfz7 X-Received: by 10.46.18.16 with SMTP id t16mr89086lje.40.1517909926346; Tue, 06 Feb 2018 01:38:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517909926; cv=none; d=google.com; s=arc-20160816; b=aySd1n1JLn2LobtKg7FZLgv5C4V3NesbDOtOzP0edUIAcpgWvNEV7NfYxdrtL9coMv WFLlpPnb17fvQSe/VC3PP72rRIEPJY8Zbj7SvrMsyVixX4wZ+ttX4srU9iA+6WWPT+eR RMatfeEkBiklLB9YP4t5S/ZQr2Pj47734Abf61gbKZ39L0IPm+zBvLPtFx/6xSAdKpVm l5O9K7R0FKHNl9Itvs+UxA1p1RHz2+ywW9jMghBADltM2oeRzvsJYrMlK/ceqbD1czcz cA1gWS5/ASNYbqmSXcNEaOJ1IYN8eHtHift5V9vOGVhx/k56HPYp6/Z8Zl2zpUjX2MOW OhSg== 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=b3Z6x8ZZ5PXkh6iGRaB6bFxqRglaGQqOl/cco822Qco=; b=lbnF5/RnRt1lwNA98vKJUMbQZOaLlAdXzZd5vlyIgT/UInCpFDMBLuyt/XPtWFrIG5 bnPaaFJ4AbGYA3/OEtaz5hvXgPWKlwiI70/gMTlW2mgjLr68ssU7bMikICRKrtvwjym5 Txj7uTz7JKoxs3PAFBCFXn+fmCFXyFo5SDrNQARdS1/uVlfeNDtyUcry7vXg7jSaUvoK Qq51ELoan6GEzLjEtxyFMn5BS3VCD6U0zJo6+zDicHcUtn0QAphxt6KPyB2/eFRL9kQ8 ejkXwVqNMtpcN7Cq7ChKB5OdLqlXdG6GK8IPhIkT0FLpF/0bURuGKhlp0L8Sfa6nkX42 82xw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id n69si738394lje.4.2018.02.06.01.38.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Feb 2018 01:38:46 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w169cjfO028854 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 6 Feb 2018 10:38:45 +0100 Received: from [167.87.10.11] ([167.87.10.11]) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w169cib5029269; Tue, 6 Feb 2018 10:38:44 +0100 Subject: Re: [PATCH 1/2] buildchroot: Do not call 'apt-get update' To: Alexander Smirnov , isar-users@googlegroups.com References: <20180205164347.28375-1-asmirnov@ilbers.de> <20180205164347.28375-2-asmirnov@ilbers.de> <61174b4b-84a8-aca5-f163-5137fe932e81@siemens.com> <8967e984-a83d-073f-113b-aeb861b9fcaa@siemens.com> <62123cb3-e4d1-1a46-d8f5-b721e0e5363c@ilbers.de> From: Jan Kiszka Message-ID: Date: Tue, 6 Feb 2018 10:38:44 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <62123cb3-e4d1-1a46-d8f5-b721e0e5363c@ilbers.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: yA+1VACM4uiz On 2018-02-06 10:13, Alexander Smirnov wrote: > > > On 02/06/2018 12:12 PM, Alexander Smirnov wrote: >> Hi, >> >> On 02/05/2018 08:25 PM, Jan Kiszka wrote: >>> On 2018-02-05 18:06, Alexander Smirnov wrote: >>>> 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? >>> >>> As we are heading for a single update run, no. I just wanted to ensure >>> that it's clear why we do not need it - and ideally also why we once >>> thought we need it. >>> >>> Jan >>> >> >> I checked the patch which added thi and it was dated by 2016 and >> contains big blobs for various scripts. I guess it was merge from some >> existing example. I've double checked the multistrap Wiki page at >> debian.org and manual, there is no recommendation to have it in >> configscript. So due to it works without it - I'd like to drop it. > > I mean drop 'apt-get update' :-) > Ack. Jan