From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6566315014247940096 X-Received: by 2002:a5d:420f:: with SMTP id n15-v6mr166715wrq.26.1528974944872; Thu, 14 Jun 2018 04:15:44 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:f117:: with SMTP id p23-v6ls1656098wmh.4.canary-gmail; Thu, 14 Jun 2018 04:15:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL/dge2/X17IMXLdcy8n7zRlqZo224yifNw5CRy5yGpmfH4zsNYAXwt/FN9RuCaS1ox0fdx X-Received: by 2002:a1c:3fd2:: with SMTP id m201-v6mr192157wma.2.1528974944576; Thu, 14 Jun 2018 04:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528974944; cv=none; d=google.com; s=arc-20160816; b=zkgrKAX3IxWETALmrq0TwHYYx63ifR6lB6ugQNRanrSQ8i8DxuhSrpONE6RHdr/JNt WTia720EvJHHHDSbWS/FlxGhDH+BX1bP5M+ny1jXFdAckFbYmg8tnBkc6kEZbM8jOqNt pGrto3IcyRiiytejngDwXLANm3e7Wwgrv7fk2mvYNikVpa/m0HnDpggQNJ058+GObC5I UvgoqtlVCOHCXOoauv5CW2fU3mB8b8kafrWxg3fZXBwCkC1/uCil0XeLc7pAr7OLZ0Z5 +DJl9q71OIcNzMRWg5HuuppZ644F//rHSmjxXcFHnw3DW0Bwp0Y+IP9ByIDR30ZKkSXA 9TQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=OI6Xc5hSC3os+pvA2DMYVbVJNzQrxxX3ouxpmOUv1+I=; b=scFszCdvw2/U4V7uGJkQdYLohKQNvrcdfvtUD2YfCdNzCeYHA1UkJPHnI+FhJtVA8S awXPJSZsxXL4oxW+fpXKonHqkouZGu3LAqNwLb9RPWcBuSQSg9WaobsuRqKOEzUVCYfz ji4wdEcjYTf2MNR1xq7MUfTBP5PTRo4yb0WryC6itzNoxLqZJPTisossWJBiYjEQbtxW s5FEPHWyyMoGHWk57cavzJknCu/A0loBQnpfppMLM8+hzAbo9BZT2B0J3oMtVtqfjnTm GKw6EHr4znSKgnWHBZLJPlvavyh1hnLwiXu62EU0G7cVZAdHSPwEULaIcEYuUqjDYejH bKGw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id a6-v6si56966wmg.4.2018.06.14.04.15.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 04:15:44 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w5EBFhiH017276 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 14 Jun 2018 13:15:44 +0200 Received: from md1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40] (may be forged)) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w5EBFhw0022722; Thu, 14 Jun 2018 13:15:43 +0200 Date: Thu, 14 Jun 2018 13:15:42 +0200 From: Henning Schild To: Jan Kiszka Cc: isar-users Subject: Re: [PATCH] Fix mounting of downloads dir into buildchroot Message-ID: <20180614131542.13cf1581@md1pvb1c.ad001.siemens.net> In-Reply-To: References: <5e078304-29a8-460f-9859-84a7bfeb13b1@siemens.com> <20180614104003.09186edc@md1pvb1c.ad001.siemens.net> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: z0KhXfNsUfj3 Am Thu, 14 Jun 2018 10:43:52 +0200 schrieb Jan Kiszka : > On 2018-06-14 10:40, Henning Schild wrote: > > Am Tue, 12 Jun 2018 23:35:48 +0200 > > schrieb "[ext] Jan Kiszka" : > > > >> setup_root_file_system() mounts most of the required paths > >> buildchroot needs into its rootfs - except for the downloads dir. > >> But do_build() of dpkg-base cannot not detect this gap because it > >> tests for isar-apt being mounted. > >> > >> To close the gap without causing duplicate mounts, just add the > >> missing mount to the end of buildchroot do_build(). > > > > I am not sure i understand why you need that directory mounted in > > the first place. You build deps or recipe SRC_URI should provide > > you with everything you need. > > Can you please provide an example? > > - retrieval of git revision for the build (see also 9a8b7fe77cbd) mhh that stupid git again, i wish my "non-shared unpack" patch would have gotten accepted in bitbake. So that mount from 9a8b7fe77cbd got lost with debootstrap? > - pushing recipe-private downloads into that folder (that is a > special case, granted) Something that probably should not be allowed ... thinking about reproducing a build. Right now we "just" have to tame apt and bitbake. Henning > > Jan > > > > > Henning > > > >> Signed-off-by: Jan Kiszka > >> --- > >> meta/recipes-devtools/buildchroot/buildchroot.bb | 2 ++ > >> 1 file changed, 2 insertions(+) > >> > >> diff --git a/meta/recipes-devtools/buildchroot/buildchroot.bb > >> b/meta/recipes-devtools/buildchroot/buildchroot.bb index > >> 538c577..2ed5cf2 100644 --- > >> a/meta/recipes-devtools/buildchroot/buildchroot.bb +++ > >> b/meta/recipes-devtools/buildchroot/buildchroot.bb @@ -78,4 +78,6 > >> @@ do_build() { # Configure root filesystem > >> sudo install -m 755 ${WORKDIR}/configscript.sh > >> ${BUILDCHROOT_DIR} sudo chroot ${BUILDCHROOT_DIR} /configscript.sh > >> + > >> + sudo mount --bind ${DL_DIR} ${BUILDCHROOT_DIR}/downloads > >> } > > > >