From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6480563028650622976 X-Received: by 10.46.99.129 with SMTP id s1mr652489lje.34.1508924926334; Wed, 25 Oct 2017 02:48:46 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.82.14 with SMTP id g14ls368100ljb.0.gmail; Wed, 25 Oct 2017 02:48:45 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SIzLD3cXmUFx89U79Av5TkbByBThAKCxKvb/9QaBt2eBQ0JZQoDWvbwBdAWRDQ5gIHaHtK X-Received: by 10.46.2.217 with SMTP id y86mr643558lje.27.1508924925817; Wed, 25 Oct 2017 02:48:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508924925; cv=none; d=google.com; s=arc-20160816; b=K9fS88Qr7ONiTV//LwnCnCIeblwN/7P1AYB9VbNUeiblR6qiPh4Dj8o5VS7+ih+GrD Qg5Czlzy89/3j3rQZq3Id2MLI1bGiyIeX9PaL8w2x837pVg+qPYjqrv9jvgE//ps2gja czkBwjr3NrPi8ZoCXtbVpzjyD0hsQgQriZIhhi/P9p+eOuBPENrBNXCcoEvDtmV8v5vL CutCVN0UbCY020nLCp4XjQps2o7P4AJSKN27q3pdXQPlySV343/ylm39qXS9Yq1uNL0D gSTdlVax9vlzxJUHSVVrHgdH3BH2XqAKOfFxdWMrBHO3b6JiY4DnTNG/ozo8G8/HCKbh qoCg== 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:from:references:to:subject :arc-authentication-results; bh=UzAN3RypPQie9zg8j3Dz/BbJmDwxsgGAS1Swr6ADeUQ=; b=H2EKZwmUQ5waS+hAZbW6PKU/z2U+dPZxuOAcI4LbM7zokZn+pdcy2GGoPSgjigW18c LAWUJ7AFI3CmxNhgIn7SHE33DJo6tsr6xEZfEjWXPLZBFIa7QgLmlsk827rk4f5CMlbw dn26ScSe9jewS2Ngeu2ZJJwM2qQIfp+RoIJjV+RmFz/DItpNBaB5+rj0XfSEBr8y/Gam RXeNERcOT9DZiEndDyLo4izib95pLgb8MLZNp+LMEvzQWhSeLmxUZOvke/P4bHViWVRa VY1UizBE1YF//slSLqHBKnrTZq7J+An9C1p9UGLnp8rgI0MlLGvZvWwh8Zr8rHtSTP6y xzNg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id c23si90852ljf.4.2017.10.25.02.48.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Oct 2017 02:48:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of asmirnov@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 asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id v9P9mgUv029366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 25 Oct 2017 11:48:43 +0200 Subject: Re: PRoot: Drop sudo around buildchroot To: Jan Kiszka , isar-users References: <8e0fb678-085a-1403-3ee9-f3afef3c080a@ilbers.de> <00b0017a-62e0-1e1b-4d67-786af7702f8d@siemens.com> From: Alexander Smirnov Message-ID: Date: Wed, 25 Oct 2017 12:48:37 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <00b0017a-62e0-1e1b-4d67-786af7702f8d@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 5zlJFdVUxu9g 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. -- With best regards, Alexander Smirnov ilbers GmbH Baierbrunner Str. 28c D-81379 Munich +49 (89) 122 67 24-0 http://ilbers.de/ Commercial register Munich, HRB 214197 General manager: Baurzhan Ismagulov