From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6566315014247940096 X-Received: by 2002:a19:915e:: with SMTP id y30-v6mr67211lfj.7.1528965834629; Thu, 14 Jun 2018 01:43:54 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:4312:: with SMTP id q18-v6ls718896lfa.5.gmail; Thu, 14 Jun 2018 01:43:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJnA/SzNbrGPWN41Q+QABFq6DMYJeU4xW+uFOOAMSpl65+61mCjfN5dzTnah9xPzd6l+3eo X-Received: by 2002:a19:cc41:: with SMTP id c62-v6mr61843lfg.24.1528965833956; Thu, 14 Jun 2018 01:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528965833; cv=none; d=google.com; s=arc-20160816; b=ax702xPUiTVRL+oY9oI7z3QDt4oSiuFQvuCHKl0x5fLxZD+cE0LiqO6iNe0V0N0dvY WR9y+fuTpwWPh3+NjhXOexjWoJcXzDlkDWkyXJX7dBqPCPL4mC78fhiGXoZFjauw1h4D C81a2fdgUsfu9/bMyjWdyldwx8ML9asruR3AvP2j3NlseiVDRWOa7OSGrbDgtshWmIJK 9kGec+1E1+ARbfxR1+yUBphG08MZwOvjNU4hRYZ4jhOIWDbTKUZewRMjhxO7cN/Dww0p KaR4laiINo5ukBprzN5T86ecpA8hWJ2r00rk2xpwpikpezvtFhKfH9j7cCPSMoCqSSCw oSkQ== 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:cc:to:subject :arc-authentication-results; bh=3tx6WWtG05Kkmz3IY+c90zA13sOnL9FzgFYHAPv8a8E=; b=Bl7NamCrD0O9aMEO3ZfVWisbcyIAdwfwlPZNzbzqft+vzN3DMShMDqgVD5aF7N+Srk 9bJc1NIZqxxxBDtA4ocyDqzPTTgwHXCmyc2JDhoPPool3GyQ8i4Ja55EvUQj42YR6ESo 86j1SMduPFnKb22PwTsKYCBhd0BsAZURX2q8ZnlrSkm4ZJVO4ByHRKVlXt0cCCOZ6BZ7 pC9aFrQ83FHvO/+izCX6K3HUq7atE51xv3esmWNW+/Mzh44EHg/97v+tZmB6WAjry0ip D4vX/5q6Ol+Ex2AFV2DFBA/C/JL0AIuzZtHE6il4egHImViWyCFYKLmPbUW/p7jb7kc1 /VmQ== 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 g194-v6si112103lfe.2.2018.06.14.01.43.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 01:43:53 -0700 (PDT) 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 mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w5E8hqde027806 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 14 Jun 2018 10:43:53 +0200 Received: from [167.87.53.194] ([167.87.53.194]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w5E8hq8P022547; Thu, 14 Jun 2018 10:43:52 +0200 Subject: Re: [PATCH] Fix mounting of downloads dir into buildchroot To: Henning Schild Cc: isar-users References: <5e078304-29a8-460f-9859-84a7bfeb13b1@siemens.com> <20180614104003.09186edc@md1pvb1c.ad001.siemens.net> From: Jan Kiszka Message-ID: Date: Thu, 14 Jun 2018 10:43:52 +0200 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: <20180614104003.09186edc@md1pvb1c.ad001.siemens.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: fbg5HGujdxhY 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) - pushing recipe-private downloads into that folder (that is a special case, granted) 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 >> } > -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux