From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Guix binary tarball Date: Sun, 07 Jun 2015 18:14:56 +0200 Message-ID: <87zj4bxzpb.fsf@gnu.org> References: <20150515164602.GA13539@debian> <87d217itfr.fsf@kepler.schwinge.homeip.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1dKG-0004oc-22 for guix-devel@gnu.org; Sun, 07 Jun 2015 12:21:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1dKD-0003ru-Rd for guix-devel@gnu.org; Sun, 07 Jun 2015 12:21:31 -0400 In-Reply-To: <87d217itfr.fsf@kepler.schwinge.homeip.net> (Thomas Schwinge's message of "Sun, 7 Jun 2015 14:39:20 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Thomas Schwinge Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Thomas! Thomas Schwinge skribis: > I'm not a fan of extracting tarballs inside populated directories; so I'm > in favor on the suggested change to extract inside a temporary directory, > and then move everything in place as a separate step. OK. I had come to the conclusion that yes, doing it in two steps is reasonable, but it=E2=80=99s the user=E2=80=99s choice, and I wondered whet= her describing the additional steps in the manual would make things look more complicated than they are. WDYT? > $ sudo ls -ld /root/.guix-profile /var/guix /gnu > drwxr-xr-x 3 30001 30000 4096 Mai 14 10:36 /gnu > lrwxrwxrwx 1 30001 30000 45 Mai 14 10:36 /root/.guix-profile -> /va= r/guix/profiles/per-user/root/guix-profile > drwxr-xr-x 6 30001 30000 4096 Mai 14 10:36 /var/guix > > Should the tarball be packed such that it uses UID:GID 0:0, which -- I > think? -- is always expected to map to root:root? Yes, it was fixed in 01dbc7e. > Which UID:GID should I now chown the files to? root:root. > It's very common, but I don't think there's a hard requirement for the > root user's home directory to be /root. Maybe instead of shipping it in > the tarball, the symbolic link should be created by an explicit command? > > $ sudo ln -sf /var/guix/profiles/per-user/root/guix-profile ~root/.gu= ix-profile Yes, why not. What do people think? > . > > $ sudo groupadd --system guix-builder > $ for i in `seq 1 10`; do sudo useradd -g guix-builder -G guix-builde= r -d /var/empty -s `which nologin` -c "Guix build user $i" --system guix-bu= ilder$i; done > > Please describe why ten is a good amount of Guix build users. I=E2=80=99ve added this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- a/doc/guix.texi +++ b/doc/guix.texi @@ -478,6 +478,9 @@ Bash syntax and the @code{shadow} commands): @end example @noindent +The number of build users determines how many build jobs may run in +parallel, as specified by the @option{--max-jobs} option +(@pxref{Invoking guix-daemon, @option{--max-jobs}}). The @code{guix-daemon} program may then be run as @code{root} with: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks for providing feedback! Ludo=E2=80=99. --=-=-=--