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] initful ubuntu container doesn't source files in /etc/profile.d #1428

Closed
acrispino opened this issue May 31, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@acrispino
Copy link

I am using an initful Ubuntu-22.04 container on Fedora 40 Silverblue with podman 5.0.3. After upgrading from 1.7.1.0 to 1.7.2.1, scripts under /etc/profile.d/ are no longer being sourced upon distrobox enter.

# Works in both 1.7.2.1 and 1.7.1.0
$ distrobox create -i quay.io/toolbx/ubuntu-toolbox:22.04 --additional-packages gawk
$ distrobox enter ubuntu-toolbox-22-04
# ...
$ gawkpath_default # from /etc/profile.d/gawk.sh
$ env | grep AWK
AWKPATH=.:/usr/share/awk
# Works in 1.7.1.0, not in 1.7.2.0 or 1.7.2.1
$ distrobox create -i quay.io/toolbx/ubuntu-toolbox:22.04 --additional-packages gawk --init
$ distrobox enter ubuntu-toolbox-22-04
# ...
$ gawkpath_default
gawkpath_default: command not found

The relevant commit seems to be 5ea3d17

@acrispino acrispino added the bug Something isn't working label May 31, 2024
@89luca89 89luca89 reopened this Jun 19, 2024
@89luca89
Copy link
Owner

Thanks @acrispino for reporting
this indeed was a regression and prompted me to find a nice solution for non-posix shells :)

thanks!

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

No branches or pull requests

2 participants