From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6519112020741062656 X-Received: by 10.80.204.74 with SMTP id n10mr5067486edi.12.1517849047799; Mon, 05 Feb 2018 08:44:07 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.185.67 with SMTP id m61ls4368948ede.4.gmail; Mon, 05 Feb 2018 08:44:07 -0800 (PST) X-Google-Smtp-Source: AH8x224/V7ZXjvpXuUnrEWbvTKnc/Ck1xzeNLy0GRNdKtPHGU0CBBjNoaOq/oXJT8hfQaIgtRQcn X-Received: by 10.80.171.15 with SMTP id s15mr15452208edc.6.1517849047252; Mon, 05 Feb 2018 08:44:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517849047; cv=none; d=google.com; s=arc-20160816; b=xwyVabfR+5HAVSys6jJpQ1Kw4NnYsSbtiOKilcUlK4G24uGdnRwrDOCn0m6U40Mfob iX6zX8nLa2Mebf5YupW2yMlSp5GtVzA0kkcAJyAMfZSJFv4UwjbN4mFtewlQD1L5Gq0I izcOFFyRq7f1Wumz+AkEILNl8Tgj2UIgy50XZSObvt0ZomAOBvOLUsc35lk8n/eZYfSN S6ZKEUqpdl8Umx1jzEE8PZSRQFLkEaRUwCfo8DNypBinES47BvqSvdewx+L9wPBwtvcb RadiOel4DQYN2mqcmD569dwuDRN6NtGXqs8NlcLgpbeAyRce+1eu7Y1S32szdgvKubLh yl1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=dYyIFIrEFELswCAmdvHbyIwQtcdVmHVPtE20WoHTdKc=; b=TyCbZMSc+2dn7jP9QYGTB411XQ2oaELJskVneIACVo0SRGUu8eBpkwXhTBZRKfTaZY yTDKFUCS2iYZosAJmVe8vjf+PHCAzatVy3fQitS8r9VguwuKjfL0vMStikaYRjPpaDbi IjJAHa25Nw6QAaa+JC0u94vNeZdezYplboYyCRI3UaaMzTGi0vHdpmSZsVnOMJtj/nbZ 3h06Rfz5+5C1bDFaZr6MBhMpCuNB2xVBbAay9xtPk1AMWc5g3mbTmGnA0eXWCEAAusGc +3hqL9o7BbGDTyPUFEfrQ3nbInQncvk8YjdlZoDM4WZ9wv3ibDY41FhY5KYDY+7L7tw2 WRhQ== 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 m19si771984edd.4.2018.02.05.08.44.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Feb 2018 08:44:07 -0800 (PST) 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 w15Ghrp0025490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 5 Feb 2018 17:43:59 +0100 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH 0/2] mounts for buildchroot Date: Mon, 5 Feb 2018 19:43:45 +0300 Message-Id: <20180205164347.28375-1-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.5 X-TUID: m4dU7cI5NyJp Hi all, this series introduces my vision, how virtual filsystems (dev, sys, proc) should be provided to buildchroot. Currently we use several mounts around some pieces of code, but this approach can't guarantee that adding new package or feature will not also require these mounts. So I propose to have permanently mounted the following systems in buildchroot: - /sys - /proc - /dev (--bind) Mount is performed very early, the umount is dome via event BuildCompleted. This approach frees us from handling build fails cases, because this event occured anytime bitbake finished it's execution. Alex Alexander Smirnov (2): buildchroot: Do not call 'apt-get update' buildchroot: Permanently mount '/dev', '/sys' and '/proc' meta/classes/isar-events.bbclass | 3 +++ meta/recipes-devtools/buildchroot/buildchroot.bb | 21 +++++++-------------- .../buildchroot/files/configscript.sh | 5 ----- .../buildchroot/files/download_dev-random | 13 ------------- 4 files changed, 10 insertions(+), 32 deletions(-) delete mode 100644 meta/recipes-devtools/buildchroot/files/download_dev-random -- 2.1.4