From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6480563028650622976 X-Received: by 10.223.157.136 with SMTP id p8mr385487wre.14.1509643328560; Thu, 02 Nov 2017 10:22:08 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.181.129 with SMTP id c1ls850646wre.9.gmail; Thu, 02 Nov 2017 10:22:08 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SZQanTb7Y+xrPWL+Ti7MmSwk3YuL3lEU+4d0ksHCWskTvgbu+jzBmSm5c83OhlsmepgHa4 X-Received: by 10.28.196.79 with SMTP id u76mr431906wmf.5.1509643328309; Thu, 02 Nov 2017 10:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509643328; cv=none; d=google.com; s=arc-20160816; b=iYsFmuTcGIqNR4W9UiPaq/RmuktDio0Ut4ZhGJ33eAR2VSotfUw3j8wdcoNuQIrwQb 67tCdHh9cuUYoJZS46+VufB2PhZQkPPg7esef74YamN45j/rayRzdGBDrl206A6oRnKF Pc6+x7U5SWdvU72mE8QNhW7JTNJY1kMpPb6wWDG1lh6BYOFX2FTkVRLU591N6avYLXQl eaa5BZvMnF39LXgoII+9WD8GUg6p7++U6P4cIrwvdNzXtTUsUkaXWzWTeoc7O8RYbVNk C6YFpNSOVRHVzVlg/LHodSGM5/CwTvxeJ6ntDexBQI9Igejk9ey8BkaylTzYEmobWDYN v2NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=b2D6qEQo6dxuhz0YFtXG99wfh/i/Plu6rnaZ1z6BQf4=; b=yvrS31B+bk/f1c3rW48dZ18yo0bOPGE79HiX3ee/iB5aoCAqO8INnpD5D8meMAJOGh Tr6JaUGLXf5UYNfkw6UUsrOLYX3pM4dOP5Vy4pU6BxyHttvCkHLkI7O6a9DPh5OBWUno KgIb28nvmup93NUVqq8LQFzFctpt4D3OVDoxFByaMhLmZwMhNrfp7cuWr4rS3Tu3MOse aBDuV8qws5YWmOoKVwRo+hd7txZYmIzPRC5O4uOGyxatchlRFDWFp1AZd/rkO2rDR7oE /v9h4AlsMysnmMfZuXK81uDPpjXHRw92AsFrKIoRpPHADHlC1eEMBhWxTXPF6Vv4z52R z/Uw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id b8si187549wrf.5.2017.11.02.10.22.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Nov 2017 10:22:08 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id vA2HM7ub021307 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Nov 2017 18:22:07 +0100 Received: from md1em3qc ([139.25.68.40]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id vA2HM7vX003894; Thu, 2 Nov 2017 18:22:07 +0100 Date: Thu, 2 Nov 2017 18:22:07 +0100 From: Henning Schild To: Alexander Smirnov Cc: Jan Kiszka , isar-users Subject: Re: PRoot: Drop sudo around buildchroot Message-ID: <20171102182207.4af15dfe@md1em3qc> In-Reply-To: <20171102181908.6108f3be@md1em3qc> References: <8e0fb678-085a-1403-3ee9-f3afef3c080a@ilbers.de> <00b0017a-62e0-1e1b-4d67-786af7702f8d@siemens.com> <20171102181908.6108f3be@md1em3qc> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: lHlZHranl/j/ Am Thu, 2 Nov 2017 18:19:08 +0100 schrieb "[ext] Henning Schild" : > Hi, > > i just gave that a try and failed to generate an image. > > When using docker you will need "--cap-add=SYS_PTRACE". > Now i waited for a long time, proot seems to slow things down a lot. 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. Henning > And then i ended up with a long list of packages where "Errors were > encountered while processing:". Might be connected to docker... > > Did anyone else give that a try? > > Henning > > Am Wed, 25 Oct 2017 12:48:37 +0300 > schrieb Alexander Smirnov : > > > On 10/24/2017 11:22 PM, Jan Kiszka wrote: > > > On 2017-10-24 21:34, Alexander Smirnov wrote: > > >> Hello all, > > >> > > >> I've successfully dropped 'sudo' around buildchroot operations: > > >> > > >> - Create buildchroot > > >> - Build dpkg-base package (hello) > > >> - Build dpkg-raw package (example-raw) > > >> > > >> The patch is quite small, proot works out-of-the box. I've tested > > >> the following configurations: > > >> > > >> - multiconfig:qemuarm-wheezy:isar-image-base > > >> - multiconfig:qemuarm-jessie:isar-image-base > > >> - multiconfig:qemuarm-stretch:isar-image-base > > >> - multiconfig:qemui386-jessie:isar-image-base > > >> - multiconfig:qemui386-stretch:isar-image-base > > >> - multiconfig:qemuamd64-jessie:isar-image-base > > >> - multiconfig:qemuamd64-stretch:isar-image-base > > >> > > >> So proot is really good tool :-) > > >> > > >> If you'd like to reproduce the test, please try my branch: > > >> asmirnov/devel > > >> > > >> NOTE: do not forget to install proot: apt-get install proot > > >> > > >> Build command: > > >> $ bitbake multiconfig:qemuarm-wheezy:isar-image-base > > >> multiconfig:qemuarm-jessie:isar-image-base > > >> multiconfig:qemuarm-stretch:isar-image-base > > >> multiconfig:qemui386-jessie:isar-image-base > > >> multiconfig:qemui386-stretch:isar-image-base > > >> multiconfig:qemuamd64-jessie:isar-image-base > > >> multiconfig:qemuamd64-stretch:isar-image-base > > >> > > > > > > Great news! Hope this passes all tests and then makes it into > > > master soon! > > > > I've tested QEMU machines for images listed above, no difference > > observed in comparison with original 'sudo' approach. But anyway, > > it would be nice if somebody else will test this, especially in > > customer project environment. > > >