From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6519112020741062656 X-Received: by 10.25.153.136 with SMTP id b130mr102676lfe.31.1517908385538; Tue, 06 Feb 2018 01:13:05 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.65.133 with SMTP id d5ls946571ljf.11.gmail; Tue, 06 Feb 2018 01:13:04 -0800 (PST) X-Google-Smtp-Source: AH8x226kA+x3qdDZy7hehl31cv9xucvj/lGjw+Wu7yW15Cl47EKPUuqoyZYM4/4kOu77lKKJF4k9 X-Received: by 10.46.25.221 with SMTP id 90mr89023ljz.17.1517908384702; Tue, 06 Feb 2018 01:13:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517908384; cv=none; d=google.com; s=arc-20160816; b=Bw3TEP2+JXuHMyyTgn/XgQwGZGO25Kcud0fcEc2b+CCwnJIVu6MX0z4Cmfz1QazDXr b9HJrZ/Ald5HLslrxY6CQqENM62bp8DRG6vVBfX8LAfvIkHIAE/GSSi6vcmvUY737Pa2 R8mwNOEoYrmGiBqX4kTmMZU6ubt0DVnvvQtJbN17xOJlkLkj+3w7ll1IQlJ0bD9MVgvr 8CGmAFHfGroITecYzUGrV83gTWFeQtdgwshmtQmA1PVSOU57rZKfBvun0p0zAutVbOwq yKMY7bHOENcrrxJUXmW1ugq0m7m9Q/qsnclbDW9mnES8P+5GAreNjYE1J/m/XVSAF0Cx hCvA== 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=HHhkpydwedflWaiUsLpnDQS4QZg0rBlAFeJpGPr6VhY=; b=QKneZbG3Kd0AWvri08UlrYqjWgQ4YK231moMXI3BX2Rt/JkL6HU4cexzzcewM0iB2m ykKqeRDoHf/iV2OsoPCSO64fWmqvEoKbjOSQUqXTmCWG29S6PlnumSJ1JNAGX2qDgRUg 9/sjr7XjsKwsB2XpN6t3SpxoB4vQEtzfJex4TkoIEJTLxAIx4iNgVg6grVidFa6+bkXW zvEkEPAVucypIdoT+HPewX2tjrR2MaGhC0FO9Nts/kKnvdgCcRFGOhp07hjyvQuWI5Rr GfHAAzx4m3vNB+0sew4Zd65POPdmMwn3sEf8tF5jutJ9JXFS3nx+1rAEEhqdkOVF/na6 eumg== 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 n90si661682lfi.1.2018.02.06.01.13.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Feb 2018 01:13:04 -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 w169D04R028522 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 6 Feb 2018 10:13:02 +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> <8967e984-a83d-073f-113b-aeb861b9fcaa@siemens.com> From: Alexander Smirnov Message-ID: Date: Tue, 6 Feb 2018 12:12:55 +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: <8967e984-a83d-073f-113b-aeb861b9fcaa@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: leAexK6AcJWP 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. Alex