89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
9.43k stars 385 forks source link

[Error] Unable to enter gentoo container with fish as login shell #1347

Closed Book-reader closed 2 months ago

Book-reader commented 2 months ago

Please, before opening a bug:

Describe the bug When entering a gentoo conainer created with the docker.io/gentoo/stage3 image it fails with the message /etc/fish/conf.d/distrobox_config.fish: No such file or directory

To Reproduce Change your login shell to fish Create a distrobox container with distrobox create --image docker.io/gentoo/stage3 --name gentoo Enter the container with distrobox enter gentoo See error

Expected behavior I am able to create and enter the container with the fish shell as my login shell

Logs gentoo-distrobox.log

Desktop (please complete the following information):

Additional context This error does not occur on debian or void containers. It seems that gentoo does not create /etc/fish/conf.d when fish is installed which is needed for the creation of /etc/fish/conf.d/distrobox_config.fish in line 1833. I was able to fix the issue by adding mkdir -p /etc/fish/conf.d after line 1832 in distrobox-init.