From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6458972999552860160 X-Received: by 10.25.79.93 with SMTP id a29mr252397lfk.28.1503846863898; Sun, 27 Aug 2017 08:14:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.20.86 with SMTP id 22ls1065598lju.22.gmail; Sun, 27 Aug 2017 08:14:23 -0700 (PDT) X-Received: by 10.46.1.227 with SMTP id f96mr245361lji.23.1503846863442; Sun, 27 Aug 2017 08:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503846863; cv=none; d=google.com; s=arc-20160816; b=bPqvwNgq3E1ySjvrtzyooLGwYW4eC+QrwP/0QJJ2GxzrwTgFb4tTYv+KTDNubIIysw h69Px5QFq09B8P97EpgAJqmYf2yBfca5dQa3cY66k1B5JCo8XlgmGeJ8wulXojXer0Nd ahkDDlAnkoK+YgBS6MJI9cLsTC2pmiJeCFV0YJE7Hvih9U4mq/uHvWmQ/yq0ZVxQhEN3 Qecghs44pEEcGtD4gOJEN4Va2C0tOislNsQ7i+fNw689TzFFeBysttgKZlTlXTQxZbR1 0ctU2ltIKCmwb8ojAwxGpB+8jpZ8Dhms8cLnNZrEm6eqRgKF/1yDq9jTsd9eg8xv4ex5 WC/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=31nRZDnGeKWzAXVHiOGphdGBOXYW7b/GpOtTFEB50uA=; b=nY7X2CJYbnwFOlWu0KM5e1n5wDkJllPstG8KAkolvpa1BmlRQkKgT0EB06jC4NbBaa H7GolZXoBo8c1+hYMRggE8syr/NJlYa5aiIEvdhrRiy7bRguGlWeJ/9nEI94T9h8S57C lTCylA1mQ2Q8lJzBVs4nbU5T2a3VkRYNEpcO5piwYoER4C9i7bKbpHBOcD9Zuzcxewny B3y7r7qmwxFL4KBOzMeXVVWtZId0mx3L42Xs61nnWhfxi4jecaGkKRknNxkA4wbWXNtn wxNVjbFwMauKcE4oFLllA2ve9YQr2JIaUxsX8O+SqR9P1Fn6Zv4Az5docu06H3J7y1d0 LUzw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id k84si385659wmh.5.2017.08.27.08.14.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Aug 2017 08:14:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of asmirnov@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 asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from localhost.localdomain ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id v7RFDkeg006455 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 27 Aug 2017 17:13:53 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Baurzhan Ismagulov , Alexander Smirnov Subject: [PATCH 2/6] classes/image: Provide /dev/null for Stretch apt Date: Sun, 27 Aug 2017 18:13:35 +0300 Message-Id: <20170827151339.12806-3-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170827151339.12806-1-asmirnov@ilbers.de> References: <20170827151339.12806-1-asmirnov@ilbers.de> X-TUID: 3aB39FbUfQv9 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" 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 #configuring packages -- 2.1.4