unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39023: binary installation manual doesn't work on Alpine Linux
@ 2020-01-07 21:29 symphonia
  2020-01-08 12:34 ` Gábor Boskovits
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: symphonia @ 2020-01-07 21:29 UTC (permalink / raw)
  To: 39023

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-04-23 14:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).