From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6480563028650622976 X-Received: by 10.25.35.87 with SMTP id j84mr493402lfj.23.1508873661255; Tue, 24 Oct 2017 12:34:21 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.23.214 with SMTP id 83ls161718ljx.3.gmail; Tue, 24 Oct 2017 12:34:20 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SqshNUjmWE85UkK18rqG4nxQVv5jY8D+MWbfkKuXm6bBhwhmU/7X+1Sea8nATPN4RCYDk0 X-Received: by 10.46.99.129 with SMTP id s1mr595268lje.34.1508873660742; Tue, 24 Oct 2017 12:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508873660; cv=none; d=google.com; s=arc-20160816; b=v8A6q0TmT1V0wLvojkhDx8tDvJtCBtcpZNIoOAI+/L92sWVm4zXK11p+XA4oCW/3n5 rE+OqogO5MsAEc2mZ4ksji7k8TF6s4jciZGue/Ks1E3d3pbL2snCXAG11AfFtPAIfeSC n4Yz1hh5AT1uIbuvW8B7tbBdMFEmN2Efc74gaYf2mI0ZQLJqRbXypIS0QTs+cDu4vmL+ mLtv4uu07iTS0F5fBBYUDx3lnIQjw8yaume6rA608zmtlJcsgrpoRwqN8e1EjaXvGWQb 8AfcIg7mEShg9YLt72nq/t8SM0E93ooXPN8BBhU7uGWKEuNY4Bkz/VwB22Gylm7gSJzn xwxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version:user-agent :date:message-id:subject:from:to:arc-authentication-results; bh=TgUH56WOK9EGKD/UrHdYpcLd60uLDhS4K+BO9fR19RU=; b=xd9wODROdKk5pzdCmnYQALihpzzfufgf1rtoCxwdOS5XFkRUbx89666rWwwF8E/kAH y7OMvfRvFj1udZG1goJ+8PglP0YOYK7+bNNd7q2xVlVmBktppUyyrBHMg7cSMfm+kcwK hZyuBl3TxhroHWCiCaLMhNJb8ZTWzid7bl/DMcv9cmx6EvmPUDCBpLvDVpONJ2L71Qrg 94S3pIKL+8DP9B0a8oblQEYSVLrSGmEwXqKmpEiIHBG/haWk4l1WhzkG8V4OlO08lX5S eX4PYRHfuoDXSERRvbdxvN1kF38JMq7n2z4q5513A6ylRQGcP1nQVf7Dorkg0x2RsrMG 8nTQ== 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 72si36759ljf.5.2017.10.24.12.34.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Oct 2017 12:34:20 -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 v9OJYHZO027049 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Tue, 24 Oct 2017 21:34:18 +0200 To: isar-users From: Alexander Smirnov Subject: PRoot: Drop sudo around buildchroot Message-ID: <8e0fb678-085a-1403-3ee9-f3afef3c080a@ilbers.de> Date: Tue, 24 Oct 2017 22:34:11 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: Z+Mgp5+OcdpW 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 -- 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