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

[Suggestion] Install doas for Chimera containers #1166

Open
PureTryOut opened this issue Jan 21, 2024 · 1 comment
Open

[Suggestion] Install doas for Chimera containers #1166

PureTryOut opened this issue Jan 21, 2024 · 1 comment
Labels
enhancement New feature or request wait-on-user waiting for a reply

Comments

@PureTryOut
Copy link

PureTryOut commented Jan 21, 2024

Is your feature request related to a problem? Please describe.

I'm trying to create a container that uses Chimera Linux. That distribution doesn't have sudo available, but it does have doas instead (package name opendoas). Currently when using distrobox create --image docker.io/chimeralinux/chimera there is no way to elevate privileges inside the container.

Describe the solution you'd like
doas to be installed by distrobox-init.

Describe alternatives you've considered
I don't think packaging sudo for the distribution when they have clearly meant to use something else would be right 😅

Additional context
The distro uses apk as it's package manager like Alpine Linux, but it isn't Alpine Linux and any package there doesn't have to exist ( by that same name) in Chimera. Available packages can be found at https://pkgs.chimera-linux.org/packages

@PureTryOut PureTryOut added the enhancement New feature or request label Jan 21, 2024
@89luca89
Copy link
Owner

Hi @PureTryOut

There is a similar thing for Wolfi (also uses apk) where I just use su-exec and "alias" it to sudo

You can try with a pre-init-hook to create such wrapper, and test if that is enough, and if doas needs other setup (like with sudo, for nopasswd and stuff like that)

Then we can think of integrating it in the init

@89luca89 89luca89 added the wait-on-user waiting for a reply label Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wait-on-user waiting for a reply
Projects
None yet
Development

No branches or pull requests

2 participants