Skip to contentSkip to conversation

Fix adduser --shell path

PATCH Andrew Cooper 2 participants 4 messages Apr 10, 2025 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andrew Cooper

author Acked-by
#1 lore raw
Quoted 7 lines · Anthony PERARD

We need the full path to a shell in /etc/passwd, otherwise su user doesn't work.

    $ su user
    su: can't execute 'bash': No such file or directory

Would you like me to pick this up?

Quoted 5 lines

---

Although, I don't know when this shell is been used, it seems that we get /bin/sh unless we start the container explicitly with bash, like containerize is doing.

I'm not sure why the x86 side is like that, but I didn't want to change it gratuitously...

~Andrew

A message that is not in the archive (sent off-list or not yet received): Z_f0BO6oncTMKtrQ@l14

#3 lore raw
Quoted 8 lines · Anthony PERARD
Quoted 7 lines · Andrew Cooper
Quoted 6 lines · Anthony PERARD

We need the full path to a shell in /etc/passwd, otherwise su user doesn't work.

    $ su user
    su: can't execute 'bash': No such file or directory
Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Would you like me to pick this up?

Yes, that would be nice. I saw you've got more change coming to the dockerfiles, like actually adding diffutils to the x86 build container source file.

Indeed.

Quoted 3 lines

And by the way, you might want to add gawk as
well to replace busybox's awk, to make the linux build a bit more happy, even if it doesn't seems to be an issue right now.

That awk complaint appears to go away with find/diffutils in the container.  I've not figured out exactly why yet.

~Andrew

#4 lore raw
Quoted 7 lines · Andrew Cooper
Quoted 3 lines · Anthony PERARD

And by the way, you might want to add gawk as
well to replace busybox's awk, to make the linux build a bit more happy, even if it doesn't seems to be an issue right now.

That awk complaint appears to go away with find/diffutils in the container.  I've not figured out exactly why yet.

See my earlier email, I've seen it still there at least in one job.

Signature · 3 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
#5 lore raw
Quoted 9 lines · Marek Marczykowski-Górecki
Quoted 6 lines · Andrew Cooper
Quoted 3 lines · Anthony PERARD

And by the way, you might want to add gawk as
well to replace busybox's awk, to make the linux build a bit more happy, even if it doesn't seems to be an issue right now.

That awk complaint appears to go away with find/diffutils in the container.  I've not figured out exactly why yet.

See my earlier email, I've seen it still there at least in one job.

I've found it again.

+ make modules_prepare
  SYNC    include/config/auto.conf
  GEN     arch/x86/include/generated/asm/orc_hash.h
awk: bad regex '^struct orc_entry {$': Invalid contents of {} SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h

It's specific to modules_prepare, so only shows up when building argo.

~Andrew