From mboxrd@z Thu Jan 1 00:00:00 1970 From: symphonia@disroot.org Subject: bug#39023: binary installation manual doesn't work on Alpine Linux Date: Tue, 07 Jan 2020 21:29:36 +0000 Message-ID: <4678e0a6a529877fee91a452424115c1@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34403) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iowSJ-0002dc-Gf for bug-guix@gnu.org; Tue, 07 Jan 2020 16:32:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iowSI-0001Ic-DT for bug-guix@gnu.org; Tue, 07 Jan 2020 16:32:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43521) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iowSI-0001IO-9c for bug-guix@gnu.org; Tue, 07 Jan 2020 16:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iowSI-0006RF-6c for bug-guix@gnu.org; Tue, 07 Jan 2020 16:32:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:33064) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iowQ3-00023h-5c for bug-guix@gnu.org; Tue, 07 Jan 2020 16:29:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iowQ0-0006vk-Rm for bug-guix@gnu.org; Tue, 07 Jan 2020 16:29:42 -0500 Received: from knopi.disroot.org ([178.21.23.139]:53684) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iowQ0-0006t5-92 for bug-guix@gnu.org; Tue, 07 Jan 2020 16:29:40 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 7C4B9237F6 for ; Tue, 7 Jan 2020 22:29:38 +0100 (CET) Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ntza9bp1kjTE for ; Tue, 7 Jan 2020 22:29:37 +0100 (CET) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 39023@debbugs.gnu.org The commands in https://guix.gnu.org/manual/en/guix.html#Build-Environmen= t-Setup=0Ado not work on busybox-based systems such as Alpine Linux by de= fault.=0AThis is because they do not have 'groupadd' or 'useradd' by defa= ult (from 'shadow' package).=0A=0A# groupadd --system guixbuild=0A# for i= in `seq -w 1 10`;=0A do=0A useradd -g guixbuild -G guixbuild = \=0A -d /var/empty -s `which nologin` \=0A -c= "Guix build user $i" --system \=0A guixbuilder$i;=0A done= =0A=0AI suggest adding another example which works by default on busybox.= =0AExplanation: -S means 'add system group/user'; -h is 'home directory';= -g is 'GECOS field'=0AAlso, Alpine Linux fails to boot if /var/empty is = not owned by root, so that needs to be fixed afterward as well.=0A=0Aaddg= roup -S guixbuild=0Afor i in `seq -w 1 10`;=0Ado=0Aadduser -G guixbuild \= =0A-h /var/empty -s `which nologin` \=0A-g "Guix build user $i" -S \=0Agu= ixbuilder$i;=0Adone=0Achown root:root /var/empty # /var/empty must be own= ed by root, fix permission after `adduser` modified it