From: "Gábor Boskovits" <boskovits@gmail.com>
To: symphonia@disroot.org
Cc: 39023@debbugs.gnu.org
Subject: bug#39023: binary installation manual doesn't work on Alpine Linux
Date: Wed, 8 Jan 2020 13:34:00 +0100 [thread overview]
Message-ID: <CAE4v=phMbf=PsT4zvrkRA3kCkemJuWQfR5ciA_JZbwJY1OR+Pg@mail.gmail.com> (raw)
In-Reply-To: <4678e0a6a529877fee91a452424115c1@disroot.org>
Hello,
<symphonia@disroot.org> ezt írta (időpont: 2020. jan. 7., K, 22:32):
>
> The commands in https://guix.gnu.org/manual/en/guix.html#Build-Environment-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 that 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 permission 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
--
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21
next prev parent reply other threads:[~2020-01-08 12:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-07 21:29 bug#39023: binary installation manual doesn't work on Alpine Linux symphonia
2020-01-08 12:34 ` Gábor Boskovits [this message]
2020-01-22 3:53 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-01-22 19:42 ` Gábor Boskovits
2020-01-22 19:58 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-01-22 20:03 ` Gábor Boskovits
2020-02-19 15:56 ` zimoun
2020-01-22 1:44 ` bug#39023: adduser/addgroup vs useradd/groupadd zimoun
2020-01-22 4:03 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-01-22 8:31 ` zimoun
2020-04-23 11:55 ` bug#39023: binary installation manual doesn't work on Alpine Linux Vincent Legoll
2020-04-23 13:29 ` zimoun
2020-04-23 14:15 ` Vincent Legoll
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAE4v=phMbf=PsT4zvrkRA3kCkemJuWQfR5ciA_JZbwJY1OR+Pg@mail.gmail.com' \
--to=boskovits@gmail.com \
--cc=39023@debbugs.gnu.org \
--cc=symphonia@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).