Open PureTryOut opened 7 months ago
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
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 havedoas
instead (package nameopendoas
). Currently when usingdistrobox 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 bydistrobox-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 :sweat_smile: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