Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consider getent alternative, doesn't exist on busybox (eg. BalenaOS): Could not find user in /etc/passwd #477

Closed
jayv opened this issue Dec 8, 2022 · 1 comment
Labels

Comments

@jayv
Copy link

jayv commented Dec 8, 2022

It breaks the script early eg: x11docker ERROR: Could not find user '...' in /etc/passwd.

mviereck pushed a commit that referenced this issue Jan 15, 2023
@mviereck
Copy link
Owner

mviereck commented Jan 15, 2023

Sorry for my late response.
I have replaced getent with a custom function using grep. That should fix this.
However, it is likely that some other commands might miss in busybox, too. Would you mind to update x11docker and try out?

Just curious, x11docker runs well on alpine that in turn is based on busybox. Maybe busybox in alpine provides more tools than busybox in BalenaOS?

I had a look if I could run BalenaOS in Virtualbox, but there was no straightforward way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants