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
Ensure there isn't already an open issue about this.
Ensure there isn't already a closed/resolved issue about this.
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
Desktop (please complete the following information):
Are you using podman, docker or lilipod? podman
Which version or podman, docker or lilipod? 5.0.2
Which version of distrobox? 1.7.1.0
Which host distribution? arch linux
How did you install distrobox? through pacman
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.
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 withdistrobox enter gentoo
See errorExpected 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 addingmkdir -p /etc/fish/conf.d
after line 1832 indistrobox-init
.