From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6621956091070644224 X-Received: by 2002:a1c:1714:: with SMTP id 20mr106992wmx.1.1543329935244; Tue, 27 Nov 2018 06:45:35 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:b727:: with SMTP id l39ls7297732wre.3.gmail; Tue, 27 Nov 2018 06:45:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/VU0gg+Gjrspw4Iz4E9vVxfe0TF20Hn+nCwzshoyVpYz5KSG6v1Q6bustQSep19DaV5ymCB X-Received: by 2002:adf:dd90:: with SMTP id x16mr95648wrl.26.1543329934780; Tue, 27 Nov 2018 06:45:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543329934; cv=none; d=google.com; s=arc-20160816; b=XyKhHH9feRuRpXeAC61uJxOS0NUTjm4wLN/kIj+kyNer7Irksslda377JUp1mI7hDe UpdO+ZYEIaMPLtROSfvCWVFvGqS0VTBcTKo/qBeaSkb7is4TKVhl1vV9aQGQtjYktWlC ZTTqhuoPBolkP1EoTKI96Et2bboOmYpj/LHqhiegTwI2z85K+GTzfIC+H8UNeQAhywo3 E2BMl6eE/O57nzsrqjRGk+FqjfGRaAW/Xo+RqLGP7ASAe031IyDDYyOBvYvgQSBFKlQx TWnmBPCyWUcQ2hm2hpsaKCNXsOCFfg/CUq9HJmwUta0WS1q+56nxvOzMVP+6pB7lYiEM g+cA== 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; bh=bj4m1wINLAX/StZIZkv0IAVnoLKZxLPOY3e5EvxSbRY=; b=ScV3SOrXf3sxNbkUt7fDqUvKGXlUMcVTYdUPSMNuL4Wv12l5tkkF1X74x5NEWaaqX6 osUvKbUBmnVu/70zOrnDcW5zPYDNoPoDbDawGdiPfdKXHfaXBz4w0lO4yUdqE7ATZxpH 4kpi6JWt8m7P9O4eniDuwpF4qYV89yYau+0h28oqVTkJc+2UfNjGN8S4bjEAhn3ShCiy 76tWqIICVcD9FuzS4ZMjuthQtZjlpsoF98J0UmR2wEgIB3oxP3uLb/p9i9DwPB7a8giC jJcLb38pxGh3wDrIVExFQkPhD6htmLmuxWG9De+nw0qcrF1t8TnnDig48n7fiLnPIZ0W i5Mw== 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 r194si40871wmg.4.2018.11.27.06.45.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 06:45:34 -0800 (PST) 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.180] (nat-ppp-217.71.235.199-satnet-spb.ru [217.71.235.199] (may be forged)) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id wAREjVIF007470 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 27 Nov 2018 15:45:33 +0100 Subject: Re: [PATCH v6 0/2] rbind mounts for /dev and /sys To: Cedric Hombourger , isar-users@googlegroups.com References: <20181119102407.0903d847@md1za8fc.ad001.siemens.net> <1542717658-157-1-git-send-email-Cedric_Hombourger@mentor.com> From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: <59566b71-f70a-ba1a-fd63-d6ea6d24c84d@ilbers.de> Date: Tue, 27 Nov 2018 17:45:26 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <1542717658-157-1-git-send-email-Cedric_Hombourger@mentor.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: qVcwgLsfRXnq Hi Cedric, After applying these patches I've recognized that after running ci_build.sh script, the number of mounts significantly increases. On my PC it looks like that $ mount | wc -l 34 isar$ ./scripts/ci_build.sh -q -f ... $ mount | wc -l 100 If I revert these patches the number of mount points stays the same after running ci_build.sh script. This behavior significantly affects CI - builds start to fail. This is a blocking point for CI and if we don't find a quick solution I will have to revert these patches in 'next'. Thanks, Maxim. On 11/20/18 3:40 PM, Cedric Hombourger wrote: > Some of the packages I have been rebuilding within Isar require /sys mounted. > For instance, golang-google-grpc runs some package tests after it builds itself > and reads properties from /sys/class/dmi. > > The initial version of this patch series only added a mount of /sys. Henning > then suggested that we follow Gentoo's guidelines for chroots. As such, this > patch series is now mounting /dev and /sys as rbind mounts but leaves /proc > as a regular procfs mount (like Gentoo does). > > ChangeLog: > > v6: remove unnecessary mkdir for /sys > v5: cover letter added as suggested by Jan (private e-mail) > v4: limit rbind mounts to /dev and /sys, leave /proc as a regular mount > v3: rbind mounts for /dev, /proc and /sys, add explicit umount calls > v2: create /sys directory > v1: initial submission, simply mount /sys > > Cedric Hombourger (2): > buildchroot+bootstrap: rbind mount for /dev > buildchroot: add sysfs mount since expected by some packages > > meta/classes/buildchroot.bbclass | 5 ++++- > meta/classes/image.bbclass | 3 ++- > meta/classes/isar-bootstrap-helper.bbclass | 6 +++++- > meta/classes/isar-image.bbclass | 3 ++- > meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 8 ++++++-- > 5 files changed, 19 insertions(+), 6 deletions(-) > -- 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