public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: "Hombourger, Cedric" <Cedric_Hombourger@mentor.com>
Cc: "isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: Re: [PATCH v6 0/2] rbind mounts for /dev and /sys
Date: Thu, 29 Nov 2018 11:48:42 +0300	[thread overview]
Message-ID: <f12b7f04-a7aa-b08e-260c-5a86120aeb99@ilbers.de> (raw)
In-Reply-To: <2796c60503e14c2aa1172083cf11a5a7@svr-ies-mbx-02.mgc.mentorg.com>

Hi Cedric,

On 11/29/18 11:28 AM, Hombourger, Cedric wrote:
> Hi Maxim,
> 
> No worries - I was also busy here in St Petersburg because of an accident and now have a broken ankle :(

Sad to hear :(...
So you are the victim of Russian winter and you learned the Russian word 
'gololed' (iced surface)...

> Yes I had tested with regular mounts (patch series v1/v2) and it worked just fine. I can submit a patch this week

Yes, I've re-read the thread. My concern on v2 was to double check that 
all /sys are properly unmounted (this is a problem we experience in 'next').

I wish you to recover and take care,
Maxim.


> Cedric
> 
> -----Original Message-----
> From: Maxim Yu. Osipov [mailto:mosipov@ilbers.de]
> Sent: Thursday, November 29, 2018 11:23 AM
> To: Hombourger, Cedric <Cedric_Hombourger@mentor.com>
> Cc: isar-users@googlegroups.com
> Subject: Re: [PATCH v6 0/2] rbind mounts for /dev and /sys
> 
> Hi Cedric,
> 
> On 11/27/18 5:48 PM, Hombourger, Cedric wrote:
>> Hi Maxim,
>>
>> We may need to revert Henning's suggestion to rbind /sys and mount
>> /sys as a regular mount (the chroot may not need all of the sub-mounts from /sys) What do people think?
> 
> My apologies for late reply (was busy with other urgent topics).
> Have you tested the version with regular mounts?
> 
> Kind regards,
> Maxim.
> 
> 
>> Cedric
>>
>> -----Original Message-----
>> From: Maxim Yu. Osipov [mailto:mosipov@ilbers.de]
>> Sent: Tuesday, November 27, 2018 5:45 PM
>> To: Hombourger, Cedric <Cedric_Hombourger@mentor.com>;
>> isar-users@googlegroups.com
>> Subject: Re: [PATCH v6 0/2] rbind mounts for /dev and /sys
>>
>> 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
>>
> 
> 
> --
> 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
> 


-- 
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

  reply	other threads:[~2018-11-29  8:48 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-09 20:11 [PATCH] buildchroot: add sysfs mount since expected by some packages Cedric Hombourger
2018-11-10  7:15 ` [PATCH v2] " Cedric Hombourger
2018-11-12  9:31   ` Henning Schild
2018-11-13  4:59     ` [PATCH v3 1/2] buildchroot+bootstrap: use rbinds for /dev and /proc Cedric Hombourger
2018-11-13  4:59       ` [PATCH v3 2/2] buildchroot: add sysfs mount since expected by some packages Cedric Hombourger
2018-11-13 10:43         ` chombourger
2018-11-13 10:59           ` Jan Kiszka
2018-11-13 12:07         ` Henning Schild
2018-11-13 12:37           ` Hombourger, Cedric
2018-11-13 12:59             ` Jan Kiszka
2018-11-14  7:44         ` Henning Schild
2018-11-16 16:29           ` chombourger
2018-11-16 16:31             ` [PATCH v4 1/2] buildchroot+bootstrap: rbind mount for /dev Cedric Hombourger
2018-11-16 16:31               ` [PATCH v3 1/2] buildchroot+bootstrap: use rbinds for /dev and /proc Cedric Hombourger
2018-11-16 16:31               ` [PATCH v4 2/2] buildchroot: add sysfs mount since expected by some packages Cedric Hombourger
2018-11-17 14:56                 ` [PATCH v5 0/2] rbind mounts for /dev and /sys Cedric Hombourger
2018-11-17 14:56                   ` [PATCH v5 1/2] buildchroot+bootstrap: rbind mount for /dev Cedric Hombourger
2018-11-19  9:25                     ` Henning Schild
2018-11-20 12:36                       ` chombourger
2018-11-17 14:56                   ` [PATCH v5 2/2] buildchroot: add sysfs mount since expected by some packages Cedric Hombourger
2018-11-19  9:24                     ` Henning Schild
2018-11-20 12:40                       ` [PATCH v6 0/2] rbind mounts for /dev and /sys Cedric Hombourger
2018-11-20 12:40                         ` [PATCH v6 1/2] buildchroot+bootstrap: rbind mount for /dev Cedric Hombourger
2018-11-20 12:40                         ` [PATCH v6 2/2] buildchroot: add sysfs mount since expected by some packages Cedric Hombourger
2018-11-22 16:08                           ` chombourger
2018-11-23 14:13                         ` [PATCH v6 0/2] rbind mounts for /dev and /sys Maxim Yu. Osipov
2018-11-27 14:45                         ` Maxim Yu. Osipov
2018-11-27 14:48                           ` Hombourger, Cedric
2018-11-29  8:22                             ` Maxim Yu. Osipov
2018-11-29  8:28                               ` Hombourger, Cedric
2018-11-29  8:48                                 ` Maxim Yu. Osipov [this message]
2018-11-29 10:00                                 ` Baurzhan Ismagulov
2018-11-29  9:54                             ` Henning Schild
2018-11-19  9:27                   ` [PATCH v5 " Henning Schild
2018-11-19  9:30                     ` Hombourger, Cedric
2018-11-13 12:06       ` [PATCH v3 1/2] buildchroot+bootstrap: use rbinds for /dev and /proc Henning Schild
2018-11-12  9:46   ` [PATCH v2] buildchroot: add sysfs mount since expected by some packages Maxim Yu. Osipov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f12b7f04-a7aa-b08e-260c-5a86120aeb99@ilbers.de \
    --to=mosipov@ilbers.de \
    --cc=Cedric_Hombourger@mentor.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox