From: Mark Wielaard <mark@klomp.org>
To: "Martin Liška" <mliska@suse.cz>
Cc: buildbot@sourceware.org
Subject: Re: Missing useradd on opensuse tumbleweed
Date: Sun, 25 Dec 2022 21:28:18 +0100 [thread overview]
Message-ID: <Y6iyYrSJZoB30Ks8@wildebeest.org> (raw)
In-Reply-To: <Y6iElRqEr08LIi8p@wildebeest.org>
[-- Attachment #1: Type: text/plain, Size: 586 bytes --]
Hi,
On Sun, Dec 25, 2022 at 06:12:53PM +0100, Mark Wielaard wrote:
> The opensuse tumbleweed container image doesn't instantiate anymore
> because useradd is missing:
>
> Step 6/12 : RUN useradd -u 1001 -U -d /home/builder -m builder
> ---> Running in 30bd241f0846
> /bin/sh: line 1: useradd: command not found
> ERROR: The command '/bin/sh -c useradd -u 1001 -U -d /home/builder -m builder' returned a non-zero code: 127
>
> Do you happen to know which package needs to be added to the image?
Found it. "shadow". With that installed useradd seems to succeed.
Cheers,
Mark
[-- Attachment #2: 0001-Add-shadow-to-opensuse-tumbleweed-Containerfile-for-.patch --]
[-- Type: text/x-diff, Size: 1015 bytes --]
From af85289d92fc23e679d68a222152da2806140265 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Sun, 25 Dec 2022 21:24:55 +0100
Subject: [PATCH] Add shadow to opensuse-tumbleweed Containerfile for useradd
---
builder/containers/Containerfile-opensuse-tumbleweed | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builder/containers/Containerfile-opensuse-tumbleweed b/builder/containers/Containerfile-opensuse-tumbleweed
index 0447bc6..8de6f5f 100644
--- a/builder/containers/Containerfile-opensuse-tumbleweed
+++ b/builder/containers/Containerfile-opensuse-tumbleweed
@@ -13,7 +13,7 @@ RUN zypper -n install \
libxml2-devel dos2unix dpkg python3-devel python3-mock \
python3-rpm python3-pyxdg python3-pip openmpi-devel gdb help2man wget \
texinfo libexpat-devel glibc-devel glibc-locale xxhash-devel \
- ncurses-devel jq libjson-c-devel socat
+ ncurses-devel jq libjson-c-devel socat shadow
RUN zypper clean
# Install buildbot-worker
--
2.30.2
next prev parent reply other threads:[~2022-12-25 20:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-25 17:12 Mark Wielaard
2022-12-25 20:28 ` Mark Wielaard [this message]
2022-12-27 10:03 ` Martin Liška
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y6iyYrSJZoB30Ks8@wildebeest.org \
--to=mark@klomp.org \
--cc=buildbot@sourceware.org \
--cc=mliska@suse.cz \
/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.
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).