public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Alexander Smirnov <asmirnov@ilbers.de>, isar-users@googlegroups.com
Subject: Re: [PATCH 1/2] buildchroot: Do not call 'apt-get update'
Date: Mon, 5 Feb 2018 18:25:16 +0100	[thread overview]
Message-ID: <8967e984-a83d-073f-113b-aeb861b9fcaa@siemens.com> (raw)
In-Reply-To: <b3f527d7-2ed6-3564-2d53-10353d17662c@ilbers.de>

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 <asmirnov@ilbers.de>
>>> ---
>>>   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

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

  reply	other threads:[~2018-02-05 17:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-05 16:43 [PATCH 0/2] mounts for buildchroot Alexander Smirnov
2018-02-05 16:43 ` [PATCH 1/2] buildchroot: Do not call 'apt-get update' Alexander Smirnov
2018-02-05 16:51   ` Jan Kiszka
2018-02-05 17:06     ` Alexander Smirnov
2018-02-05 17:25       ` Jan Kiszka [this message]
2018-02-06  9:12         ` Alexander Smirnov
2018-02-06  9:13           ` Alexander Smirnov
2018-02-06  9:38             ` Jan Kiszka
2018-02-05 16:43 ` [PATCH 2/2] buildchroot: Permanently mount '/dev', '/sys' and '/proc' Alexander Smirnov
2018-02-05 16:53   ` Jan Kiszka
2018-02-05 17:16     ` Alexander Smirnov
2018-02-05 17:30       ` Jan Kiszka
2018-02-05 17:32         ` Jan Kiszka
2018-02-05 17:50           ` Jan Kiszka
2018-02-05 18:03             ` Jan Kiszka
2018-02-05 18:03             ` Alexander Smirnov
2018-02-05 18:06               ` Jan Kiszka
2018-02-06  9:38                 ` Jan Kiszka
2018-02-06  9:43                   ` Alexander Smirnov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8967e984-a83d-073f-113b-aeb861b9fcaa@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=asmirnov@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox