From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6527905254150766592 X-Received: by 10.107.88.8 with SMTP id m8mr834107iob.15.1519896390841; Thu, 01 Mar 2018 01:26:30 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.107.139.18 with SMTP id n18ls614135iod.4.gmail; Thu, 01 Mar 2018 01:26:30 -0800 (PST) X-Google-Smtp-Source: AG47ELtnA65ZjRMSVW2g65HbabUaXGN6opIjiHNOEcwDwpy0ouynRQBprOomhR1wA+DAuABPnNsq X-Received: by 10.107.179.132 with SMTP id c126mr849709iof.2.1519896390422; Thu, 01 Mar 2018 01:26:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519896390; cv=none; d=google.com; s=arc-20160816; b=jzKCEilKOyg0pq7JmDQFlbVUqTZbH+ZZdbYRERtC8r18oaGIFmMBvMzm48x2W7fCoh CwrPw5JYyNWUgpJD4bV2ZHNFEY4nojCVkumzwBHcGSssMU9Z4BMDQ/KxwG2wDjTFBseH 7JF83UgB2eHo1jTK7QP06twf8kWsWn0p6/kVFGFQApRtkxCZOJim6wPHOxPUn5jRsWX4 NepLX0Udrx18NP3676LaFvpMB9xqxgnB7G/doXgYUZ/e524pFqfkqrR8vSeyi5xn3hjy 0EC93VQ8wjQb31o8trQ2EbvMV/5JOlyNE0ijxrtsJsyVZZWE3H+6DEFe034j06xWrsuW TTNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :arc-authentication-results; bh=6C3DQcGTJ3klk4IZ8jYnkyxn/S9hT339AFrkTEMKksk=; b=YWvMO7OCT/1XbR2Hha5DsJfPPN3G4BYc7GsUs6m2ZmTuBYhh3oGYKtXUw84hgK39cB VuKzUGbWcNldHg9JBpTwRCLJ+f90JtMLRi7da2GSBgEpqh9FIlVe8Vj5KdVCeW0mmf5c 5SSIzZbPPmaFFKChyK1r5DEGTWUA9bWtEnCpviKj2UdnbrRNrlaD8FN9W8sLNLExFyrS huDigJQznKjuug4U9BlJtDyPAuk7xJmC3zZ+nOvrDqjpVYjs0GOwXoDqNTDGG7RY3ASP lvi5P/o8pLaSk6Y5Y0PaVsxeNhUqX2Oq9C7DE5MT6AjtIeQYO+CFLM/+9ofcMVcLacyL rcXg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com. [192.94.38.131]) by gmr-mx.google.com with ESMTPS id g10si329721itd.1.2018.03.01.01.26.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 01:26:30 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) client-ip=192.94.38.131; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-02.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1erKTt-00044t-Bg from Cedric_Hombourger@mentor.com for isar-users@googlegroups.com; Thu, 01 Mar 2018 01:26:29 -0800 Received: from 8ed3f6b9f02f.anacadf.mentorg.com (137.202.0.87) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Thu, 1 Mar 2018 09:26:22 +0000 From: Cedric Hombourger To: Subject: [PATCH 1/1] buildchroot: bind mount our downloads folder Date: Thu, 1 Mar 2018 09:25:46 +0000 Message-ID: <20180301092546.47270-2-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180301092546.47270-1-Cedric_Hombourger@mentor.com> References: <20180301092546.47270-1-Cedric_Hombourger@mentor.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: 3wizr5m8p99m dpkg-base would only mount our downloads folder if isar-apt is not yet mounted. When we do a full build, the buildchroot recipe will mount isar-apt and the mount condition found in the dpkg-base class will always be false. Bind mount the downloads folder from the buildchroot (we could have also changed the dpkg-base class). See https://groups.google.com/forum/#!topic/isar-users/wuxNStTkVtg Signed-off-by: Cedric Hombourger --- meta/recipes-devtools/buildchroot/buildchroot.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devtools/buildchroot/buildchroot.bb b/meta/recipes-devtools/buildchroot/buildchroot.bb index 520daf9..2fc5297 100644 --- a/meta/recipes-devtools/buildchroot/buildchroot.bb +++ b/meta/recipes-devtools/buildchroot/buildchroot.bb @@ -68,6 +68,7 @@ do_build() { sudo mount --bind ${DEPLOY_DIR_APT}/${DISTRO} ${BUILDCHROOT_DIR}/isar-apt sudo mount -t devtmpfs -o mode=0755,nosuid devtmpfs ${BUILDCHROOT_DIR}/dev sudo mount -t proc none ${BUILDCHROOT_DIR}/proc + sudo mount --bind ${DL_DIR} ${BUILDCHROOT_DIR}/downloads # Create root filesystem sudo -E multistrap -a ${DISTRO_ARCH} -d "${BUILDCHROOT_DIR}" -f "${WORKDIR}/multistrap.conf" -- 2.11.0