From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Subject: bug#39023: binary installation manual doesn't work on Alpine Linux Date: Wed, 8 Jan 2020 13:34:00 +0100 Message-ID: References: <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]:33239) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipAYB-0006L2-Lm for bug-guix@gnu.org; Wed, 08 Jan 2020 07:35:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipAYA-0005Wg-Dl for bug-guix@gnu.org; Wed, 08 Jan 2020 07:35:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43853) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipAYA-0005WH-8g for bug-guix@gnu.org; Wed, 08 Jan 2020 07:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ipAYA-0002rV-6M for bug-guix@gnu.org; Wed, 08 Jan 2020 07:35:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <4678e0a6a529877fee91a452424115c1@disroot.org> 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-mx.org@gnu.org Sender: "bug-Guix" To: symphonia@disroot.org Cc: 39023@debbugs.gnu.org Hello, ezt =C3=ADrta (id=C5=91pont: 2020. jan. 7., K, 22:3= 2): > > The commands in https://guix.gnu.org/manual/en/guix.html#Build-Environmen= t-Setup > do not work on busybox-based systems such as Alpine Linux by default. > This is because they do not have 'groupadd' or 'useradd' by default (from= 'shadow' package). > > # groupadd --system guixbuild > # for i in `seq -w 1 10`; > do > useradd -g guixbuild -G guixbuild \ > -d /var/empty -s `which nologin` \ > -c "Guix build user $i" --system \ > guixbuilder$i; > done > > I suggest adding another example which works by default on busybox. > Explanation: -S means 'add system group/user'; -h is 'home directory'; -g= is 'GECOS field' > Also, Alpine Linux fails to boot if /var/empty is not owned by root, so t= hat needs to be fixed afterward as well. > > addgroup -S guixbuild > for i in `seq -w 1 10`; > do > adduser -G guixbuild \ > -h /var/empty -s `which nologin` \ > -g "Guix build user $i" -S \ > guixbuilder$i; > done > chown root:root /var/empty # /var/empty must be owned by root, fix permis= sion after `adduser` modified it > > > I assume that the command you gave would work on non-busybox also. I would say we should replace the command we have with this more compatible one. I would wait for a few more responses, though. If that sounds good to you could you create a patch to that effect? Best regards, g_bor --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21