From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6566315014247940096 X-Received: by 2002:a65:6188:: with SMTP id c8-v6mr401681pgv.150.1528981854040; Thu, 14 Jun 2018 06:10:54 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a62:a31b:: with SMTP id s27-v6ls1923329pfe.12.gmail; Thu, 14 Jun 2018 06:10:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIztmhQ6FlWdEs6PNpcA07ACC9z29kLf/Ta65puiYFY6q9jAKjc4XiTr7G6dGSizcVZ/i4K X-Received: by 2002:a63:3804:: with SMTP id f4-v6mr380448pga.142.1528981851989; Thu, 14 Jun 2018 06:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528981851; cv=none; d=google.com; s=arc-20160816; b=ol6cwhFn67Pia/5rf9L/pw4lkr9HjLyId9eFG596WvUcfZzojvy37dQQfbENJNBHxD qsLK6WoJml6kIc3ppCkZU1w+29nEq0bwmTCKTk1KBLyCVyEyIQX3i4KCt2HH7qt6iqy4 maAHQNZHq22xpXKUMfKnGtrAFVBVC1pDByru8DaqlRIu16wPmo5yX8p6gT2O0w/RZjh9 3ssI0qrd4TbrUBH449YUPRI1pcOPn82Q6sNSh+ZGrblfh8JnDUutmq1VFNflCvdlGORi W0pDKruRUiUFTu/XBFl6a8p5DAcHkg7/l6uzOGmaM9Sm9gf9DfLm+52kCswdnH9zMuSJ ZNbg== 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:organization:from:references:to:subject :arc-authentication-results; bh=ysOhIl2n2myz/s4oDPIG+cer/7Tc376TRNUlfwSk2s4=; b=NIqLjaGf+WrCPBDI8AJpEC7+25nFApKP3GO20H/VDYma6ENRMACY9uLIxv3GR2iiTU 9Hff3woo9UY3XC1LDc572lVrIjtIICknkaFJGoXEj+iMEEOULX+C/pBoA0cWtjGR+kZH d11DZy/EDKrOHXywB/1Rm0DRdVlvMD6CgIzQafIDThv/46pOOcvVh0o8nWvcEaCXdljb 9qkW2CtunpdKmtrovWsNEE6WCZ1l7ToY8PjLoQC6RINT65Wp8jq9zJxZOQvqtITn1N9X ba3/CZAF2KWY9YzB/aKNcUhJSvtzZh1Fyz1nCTM/sxWaE7zO1iJc4vbZIR5gpxAZ31pL YYyg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id s13-v6si318927plp.1.2018.06.14.06.10.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 06:10:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of mosipov@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 mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.50.163] (d51A48A80.access.telenet.be [81.164.138.128]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w5EDAjiS001291 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 14 Jun 2018 15:10:46 +0200 Subject: Re: [PATCH] Fix mounting of downloads dir into buildchroot To: Jan Kiszka , isar-users References: <5e078304-29a8-460f-9859-84a7bfeb13b1@siemens.com> From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: Date: Thu, 14 Jun 2018 15:10:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <5e078304-29a8-460f-9859-84a7bfeb13b1@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: tPAGr86Y4oQg On 06/12/2018 11:35 PM, Jan Kiszka wrote: > 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(). > > 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 > } > Applied to the 'next'. Thanks, Maxim. -- Maxim Osipov ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn Germany +49 (151) 6517 6917 mosipov@ilbers.de http://ilbers.de/ Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov