From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6519112020741062656 X-Received: by 10.31.106.196 with SMTP id f187mr793562vkc.36.1517908438732; Tue, 06 Feb 2018 01:13:58 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.31.191.147 with SMTP id p141ls5766106vkf.19.gmail; Tue, 06 Feb 2018 01:13:58 -0800 (PST) X-Google-Smtp-Source: AH8x2276I3BJQNT7XRPSIR+d2caYFTp0F+v8dZVJ/dAnHOqCaNmr0QyomefsmXJyNie6QQvAtBgt X-Received: by 10.31.33.142 with SMTP id h136mr795410vkh.105.1517908438341; Tue, 06 Feb 2018 01:13:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517908438; cv=none; d=google.com; s=arc-20160816; b=cuR+Bl/URg8eCzzErBviufudfNbXmQmQhojurjnDV1VJZW/Y91tNrnoGmox16DCecM OHYF0RAhaU6ObWPC8oBmMHbHRkXUd63adhdUG4wf3pGXu0IH0cDs86VMAW9fgOJPcqB8 fQn12IhWp6h3r4UdrHX140yghh2V2zY5887fLo+A0NH5bnTF7oWgUC69Dnf2DGXhVGhg cXAvf1I2mpDKxDKEgbPPY9iEKWRmaE8o0qnTOpnZlq8oe+RJJXf5gAjF8HvAQskkVpUL 59aocGmFNy2435ZPKa93h3RM9/CXO1xzk49+TcB9S5dNRsidUnNChK7JnL2EU//c6M4n Qwmw== 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:references:to:from:subject :arc-authentication-results; bh=xVnhLKT8xiTYST6hECJ4S5mwz3QLfhl/L7qSuzpntwU=; b=thjjmEY56ZVCA7rgtyqxnv9flQyXhXsw2G5LQC1p6/UYCPkp7n2DfE1cqFJ3utgIqW rIziZj84HDjd8wfeKos5g95zcVg2kSJi346+iOetaKJ7sQi1jQGS6uVeCuCNoHngjinh OvEFk3eR6AbH8saxOjhZp4MkoWKjiQXqJj12hsiOaI/hYhZfBUKUaiwyhutqAuScI9bY rG2kxKuKY9isza4WkEjc+SpPEl8uxgh3QkQdnS93Lev18ewlTfBhw28kuIPES/Fi3l2l xsWxBAPdatXvMqInlBZ5DkVBLcx2IwQIty18VSIJCQg7jHbLBTD2Zd78EHTa2+i5eGUU aNqg== 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 k11si708311ual.2.2018.02.06.01.13.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Feb 2018 01:13:57 -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 w169DqfI028527 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 6 Feb 2018 10:13:54 +0100 Subject: Re: [PATCH 1/2] buildchroot: Do not call 'apt-get update' From: Alexander Smirnov 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> Message-ID: <62123cb3-e4d1-1a46-d8f5-b721e0e5363c@ilbers.de> Date: Tue, 6 Feb 2018 12:13:47 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: JkhmqOWWaAiH 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' :-) Alex