From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6480563028650622976 X-Received: by 10.28.14.3 with SMTP id 3mr451349wmo.12.1509643150287; Thu, 02 Nov 2017 10:19:10 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.141.202 with SMTP id o68ls846251wrb.6.gmail; Thu, 02 Nov 2017 10:19:09 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RA9L6qLuluByAHflJLf277FX2Yuu4KS/283tjbnXk+aofg/cwNMikc/DnOjclvzVSSRjss X-Received: by 10.223.154.112 with SMTP id z103mr387120wrb.0.1509643149956; Thu, 02 Nov 2017 10:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509643149; cv=none; d=google.com; s=arc-20160816; b=cAMZgd5nketVdQMjFZWVJjMUBjcwYN6ZclBH0hq3Jnv38sDzwvElwHzf736xwRpnb6 UREv2AS3Zwi9KLrqR+OkBdf3X+uuQ7pxiysdF2CHk+/4avXzyjJNuqSujZjuu3U3mYVI TctGQLRl9QW89usRTmWyHHE/R61OLsL8dn+gy1UsJT2uVvbx2DSKWpS/rxVlScTJrr+m 9cquAcSV/a01DipGNIQ8sbBCAfRj75l/MgoFyDT8zhwOMwDSK0X+bPhYnEv7GmE6xhE/ fxh1a6NX4jwE+ZZ9V56G9fDVKJXcvQJxh1VeOVUJUPq4AGwgPU9zcUFV7cLj7wNEHQt4 nk2Q== 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=1b4uAoXJ8XOfC9mlI+5h1aegBv8G04k7KhOJok56JcM=; b=xCHPWcZRgfRTifs/cgrjK3y0MaCngFRrhupf95kvFd1vHYrWZ16gC2Qm4axIXG4kEh poMjY71wIBPHb/e6mU0ReOB3f97aO4ajtPdlVXjBxFb1fppBxxEr8u3Kw+heQ5TmkKnN yq4XDMQB+dCC7bWyjytIHHKG+Cvwpogr36NgDKbXGVzSuhFFRE/fVtzUWTgMhrjf8BXo 1x9JAeXrYs5JdqfeHFtN1gPjs6+rLrMrdMHzli4D+ZeLkExotYwtbP/pLMx9WSsOYvSb iOaUlW1LEcbS/DMtTYklz819GTGLshLeFIr8m0eHISzSZRC+Z+M/2MlFEaopB0JXCjms dp/g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id e29si327550wrg.2.2017.11.02.10.19.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Nov 2017 10:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id vA2HJ9wE016148 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Nov 2017 18:19:09 +0100 Received: from md1em3qc ([139.25.68.40]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id vA2HJ9Y1030365; Thu, 2 Nov 2017 18:19:09 +0100 Date: Thu, 2 Nov 2017 18:19:08 +0100 From: Henning Schild To: Alexander Smirnov Cc: Jan Kiszka , isar-users Subject: Re: PRoot: Drop sudo around buildchroot Message-ID: <20171102181908.6108f3be@md1em3qc> In-Reply-To: References: <8e0fb678-085a-1403-3ee9-f3afef3c080a@ilbers.de> <00b0017a-62e0-1e1b-4d67-786af7702f8d@siemens.com> 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: ohnbNk3EJ/3K 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. 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. >