* Missing useradd on opensuse tumbleweed
@ 2022-12-25 17:12 Mark Wielaard
2022-12-25 20:28 ` Mark Wielaard
0 siblings, 1 reply; 3+ messages in thread
From: Mark Wielaard @ 2022-12-25 17:12 UTC (permalink / raw)
To: Martin Liška; +Cc: buildbot
Hi Martin,
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?
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Missing useradd on opensuse tumbleweed
2022-12-25 17:12 Missing useradd on opensuse tumbleweed Mark Wielaard
@ 2022-12-25 20:28 ` Mark Wielaard
2022-12-27 10:03 ` Martin Liška
0 siblings, 1 reply; 3+ messages in thread
From: Mark Wielaard @ 2022-12-25 20:28 UTC (permalink / raw)
To: Martin Liška; +Cc: buildbot
[-- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Missing useradd on opensuse tumbleweed
2022-12-25 20:28 ` Mark Wielaard
@ 2022-12-27 10:03 ` Martin Liška
0 siblings, 0 replies; 3+ messages in thread
From: Martin Liška @ 2022-12-27 10:03 UTC (permalink / raw)
To: Mark Wielaard; +Cc: buildbot
On 12/25/22 21:28, Mark Wielaard wrote:
> 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.
Yes, that's the right package.
Thanks for it.
Martin
>
> Cheers,
>
> Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-27 10:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-25 17:12 Missing useradd on opensuse tumbleweed Mark Wielaard
2022-12-25 20:28 ` Mark Wielaard
2022-12-27 10:03 ` Martin Liška
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).