From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6626616999001718784 Date: Thu, 22 Nov 2018 02:13:25 -0800 (PST) From: chombourger@gmail.com To: isar-users Message-Id: In-Reply-To: <20181122093818.21909-1-henning.schild@siemens.com> References: <20181122093818.21909-1-henning.schild@siemens.com> Subject: Re: [PATCH 1/2] buildchroot: Enter buildchroot with right user:group directly MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_184_2069974407.1542881605503" X-Google-Token: EMWC2t8FJHACCCNVLrI0 X-Google-IP: 192.94.31.2 X-TUID: dsHZ/kfy7Z3E ------=_Part_184_2069974407.1542881605503 Content-Type: multipart/alternative; boundary="----=_Part_185_657924272.1542881605504" ------=_Part_185_657924272.1542881605504 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit cool - I will indeed rework the upcoming dpkg-source class to use this. Thanks a bunch for the hint! On Thursday, November 22, 2018 at 10:38:21 AM UTC+1, Henning Schild wrote: > > From: Henning Schild > > > Instead of using "su" use "chroot --userspec". That should also be the > pattern for other chroot users that do not need root. i.e. kernel build > and upcoming "apt-get source" fetcher. > This way we can skip all the chowning we had/have to do otherwise. > > Signed-off-by: Henning Schild > > ------=_Part_185_657924272.1542881605504 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
cool - I will indeed rework the upcoming dpkg-source class to use this. Thanks a bunch for the hint!

On Thursday, November 22, 2018 at 10:38:21 AM UTC+1, Henning Schild wrote:
From: Henning Schild <hen...@hennsch.de>

Instead of using "su" use "chroot --userspec". That should also be the
pattern for other chroot users that do not need root. i.e. kernel build
and upcoming "apt-get source" fetcher.
This way we can skip all the chowning we had/have to do otherwise.

Signed-off-by: Henning Schild <henning...@siemens.com>
------=_Part_185_657924272.1542881605504-- ------=_Part_184_2069974407.1542881605503--