public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Alexander Smirnov <asmirnov@ilbers.de>,
	Henning Schild <henning.schild@siemens.com>
Cc: isar-users <isar-users@googlegroups.com>
Subject: Re: PRoot: Drop sudo around buildchroot
Date: Fri, 3 Nov 2017 10:05:45 +0100	[thread overview]
Message-ID: <001c1c67-c869-3b42-111b-5bf6bb7435aa@siemens.com> (raw)
In-Reply-To: <d046e35b-5f33-36eb-1dca-7f4063c113d8@ilbers.de>

On 2017-11-03 10:00, Alexander Smirnov wrote:
> Hi,
> 
> On 11/02/2017 08:22 PM, Henning Schild wrote:
>> Am Thu, 2 Nov 2017 18:19:08 +0100
>> schrieb "[ext] Henning Schild" <henning.schild@siemens.com>:
>>
>>> Hi,
>>>
>>> i just gave that a try and failed to generate an image.
>>>
>>> When using docker you will need "--cap-add=SYS_PTRACE".
> 
> Yes, proot uses PTRACE system call.
> 
>>> Now i waited for a long time, proot seems to slow things down a lot.
>>
> 
> The default isar-image-base base has the following results:
> 
> === sudo ===
> 
> $ source isar-init-build-env b-sudo
> $ time bitbake multiconfig:qemuarm-wheezy:isar-image-base
> 
> real    10m59.270s
> user    6m16.220s
> sys    0m54.772s
> 
> === PRoot ===
> 
> $ source isar-init-build-env b-proot
> $ time bitbake multiconfig:qemuarm-wheezy:isar-image-base
> 
> real    16m4.493s
> user    6m9.423s
> sys    3m17.692s
> 
> So, building of buildchroot, hello and example-raw adds extra 6 minutes
> on my host.
> 
>> I also needed to change multistrap to /usr/sbin/multistrap because the
>> PATH inside proot does not cover /usr/sbin ... in case anyone wants to
>> try.
> 
> proot uses your current user's environment, so export
> PATH=$PATH:/usr/sbin before running bitbake should resolve your issue.

Given that the goal is unprivileged execution, this is not the right
solution. The path needs to be fixed inside the recipe.

Jan

  reply	other threads:[~2017-11-03  9:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-24 19:34 Alexander Smirnov
2017-10-24 20:22 ` Jan Kiszka
2017-10-25  9:48   ` Alexander Smirnov
2017-10-25 14:58     ` Benedikt Niedermayr
2017-10-25 15:29       ` Alexander Smirnov
2017-10-26  8:57         ` Ben Brenson
2017-11-02 17:19     ` Henning Schild
2017-11-02 17:22       ` Henning Schild
2017-11-03  9:00         ` Alexander Smirnov
2017-11-03  9:05           ` Jan Kiszka [this message]
2017-11-02 17:33       ` Jan Kiszka

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=001c1c67-c869-3b42-111b-5bf6bb7435aa@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=asmirnov@ilbers.de \
    --cc=henning.schild@siemens.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