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

[Error] Unable to create rootfull container when user is handled by systemd-homed #1423

Closed
fcrozat opened this issue May 29, 2024 · 2 comments
Labels
bug Something isn't working wait-on-user waiting for a reply

Comments

@fcrozat
Copy link

fcrozat commented May 29, 2024

Describe the bug
When user is handled by systemd-homed, rootfull container can't be created.

To Reproduce
on MicroOS Desktop/Aeon, with podman:

distrobox create --pull --root --init --unshare-all --image registry.opensuse.org/opensuse/distrobox:latest --name foobar
distrobox-enter --root foobar

Logs
foobar.log

@fcrozat fcrozat added the bug Something isn't working label May 29, 2024
@89luca89
Copy link
Owner

Hi @fcrozat!

does this happen with rootless too?

Also can you share the content of /etc/nsswitch.conf of the host and the container?
it should have references to systemd

Also it would be useful to have the content of /etc/passwd of the container

Thanks!

@89luca89 89luca89 added the wait-on-user waiting for a reply label Jun 19, 2024
@89luca89
Copy link
Owner

In the meantime I've added a fallback that manipulates /etc/shadow directly to initialize the user in the container, this should now work

Let me know if there are still issues 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wait-on-user waiting for a reply
Projects
None yet
Development

No branches or pull requests

2 participants