From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6458972999552860160 X-Received: by 10.223.173.132 with SMTP id w4mr69555wrc.6.1503934007560; Mon, 28 Aug 2017 08:26:47 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.126.197 with SMTP id z188ls143330wmc.5.canary-gmail; Mon, 28 Aug 2017 08:26:46 -0700 (PDT) X-Google-Smtp-Source: ADKCNb7TMFs0Q1YS1qk8rO08ecZjpTBCLvQqfPbPtYmMSx92PGY36RjWgFanr4sN9ac7r4N0dqs1 X-Received: by 10.28.9.13 with SMTP id 13mr72168wmj.31.1503934006922; Mon, 28 Aug 2017 08:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503934006; cv=none; d=google.com; s=arc-20160816; b=WuVe0RrKjb3fr0fXyzGDycERmfESQ8NmxNbLT67+3CHHO9jw9aKK+GU2sK0MHiVNLe IWccMMMxL//8PI1ucs4nqw54PvSBIxS57ZfJDsEiioFZtfWFBXaqYNrmGnw8XkWXumd2 QkM8oVQNyzH+W2cgJojtZTMQGHsiudL3nHUmu4hd9JKk87EDtHDbB3EPRLG3ZFzQZPg2 Yjwv817zFvyBPWOcvXcGfXCvyg8LDbq8uIAPiCn8EcFlFLgYciFO5aQN7E50V4VlWQm0 Kfu4KzaXt+fqKwkxWrRJCLCzrJx5MmGLeyad6K2M2isLE0GlsDGL2if74Z573N6ceOXR zhmA== 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=5QCUOODu8Btx/baQtns57d5/2v3dI45rZQ559o1J/GU=; b=g3qtgOMfSGUCpYvT3WjcOwcrE/VDaT2LXGiIqJAaAANRV1Q5muIlXTBA8B8NGkTnxJ YqkmoLCuO5YGBgBSA737Ca6vKufXZJ7qRLXp+5nYfSiRG2m/6wyse3Fcxr4z7rc9m+Ga wWTar4KWlHMTKRFSiE2UEwgTMvq8R3nxCMqveKWTk82uSAj/wwUnyXWsg/gRIQUlIrPH cWdL+/Me3vk74M9dhlAB7s82lhtp/CM/Z0RZbwBEBOKhzG5vZLGAk7hDXnlIDsU0n/0D FMdQK9VcYeM92ynmumVH9y0/AdsR2ImN8Pv6m/8/l/7ADAooFrmn19vJZbvpW1zFd/6y /Hsg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 192.35.17.28 is neither permitted nor denied by best guess record for domain of henning.schild@siemens.com) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id 74si49230wmf.8.2017.08.28.08.26.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Aug 2017 08:26:46 -0700 (PDT) Received-SPF: neutral (google.com: 192.35.17.28 is neither permitted nor denied by best guess record for domain of henning.schild@siemens.com) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.35.17.28 is neither permitted nor denied by best guess record for domain of henning.schild@siemens.com) smtp.mailfrom=henning.schild@siemens.com Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id v7SFQkoj006322 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 28 Aug 2017 17:26:46 +0200 Received: from md1em3qc ([139.25.68.40]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id v7SFQkhw019906; Mon, 28 Aug 2017 17:26:46 +0200 Date: Mon, 28 Aug 2017 17:26:49 +0200 From: Henning Schild To: Alexander Smirnov Cc: , Baurzhan Ismagulov Subject: Re: [PATCH 2/6] classes/image: Provide /dev/null for Stretch apt Message-ID: <20170828172649.059ab655@md1em3qc> In-Reply-To: <20170828172006.44dfa73b@md1em3qc> References: <20170827151339.12806-1-asmirnov@ilbers.de> <20170827151339.12806-3-asmirnov@ilbers.de> <20170828172006.44dfa73b@md1em3qc> X-Mailer: Claws Mail 3.13.2 (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: 9Oo6ieKMktnI Am Mon, 28 Aug 2017 17:20:06 +0200 schrieb "[ext] Henning Schild" : > Am Sun, 27 Aug 2017 18:13:35 +0300 > schrieb Alexander Smirnov : > > > From: Baurzhan Ismagulov > > > > Signed-off-by: Alexander Smirnov > > Signed-off-by: Baurzhan Ismagulov > > --- > > meta/classes/image.bbclass | 3 +++ > > meta/recipes-devtools/buildchroot/files/configscript.sh | 1 + > > 2 files changed, 4 insertions(+) > > > > diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass > > index f42aa48..c2ff453 100644 > > --- a/meta/classes/image.bbclass > > +++ b/meta/classes/image.bbclass > > @@ -20,11 +20,14 @@ do_populate() { > > sudo mkdir -p "${S}/${DEBCACHEMNT}" > > sudo mount -o bind "${DIR_CACHE}" "${S}/${DEBCACHEMNT}" > > > > + # apt-get http method, gpg require /dev/null > > + # Otherwise, apt http method hangs on Stretch > > sudo chroot "${S}" apt-get update -y > > for package in ${IMAGE_INSTALL}; do > > sudo chroot "${S}" apt-get install -t > > "${DEBDISTRONAME}" -y \ --allow-unauthenticated "${package}" > > done > > + sudo umount "${S}/dev" > > I see a new umount and a comment, where is the new mount? > > Henning > > > sudo umount "${S}/${DEBCACHEMNT}" > > else > > diff --git a/meta/recipes-devtools/buildchroot/files/configscript.sh > > b/meta/recipes-devtools/buildchroot/files/configscript.sh index > > 5080ae1..08c818b 100644 --- > > a/meta/recipes-devtools/buildchroot/files/configscript.sh +++ > > b/meta/recipes-devtools/buildchroot/files/configscript.sh @@ -40,6 > > +40,7 @@ export LC_ALL=C LANGUAGE=C > > LANG=C /var/lib/dpkg/info/dash.preinst install > > # apt-get http method, gpg require /dev/null > > +# Otherwise, apt http method hangs on Stretch > > mount -t devtmpfs -o mode=0755,nosuid devtmpfs /dev Found it ... and it is not new. Can we not get the "mount; { stuff } umount;" into one file? But we should first discuss whether we will drop do_populate alltogether. See "[PATCH 3/3] classes: image: remove populate and replace it with a custom repo" Henning > > #configuring packages >