Skip to content

toolbox containers don't start due to missing /etc/profile.d/toolbox.sh on host #218

@dsd

Description

@dsd

Using a standard eos-admin container created on eos7, I can't enter it on eos7:

$ toolbox enter eos-admin
Error: failed to start container eos-admin

After some kerfuffle (and taking strace from eos6, because its not included in eos7) I found how to get better logs: sudo /home/dsd/strace -f -tt -v -s 4096 -o strace.out -u dsd env HOME=/home/dsd XDG_RUNTIME_DIR=/run/user/1000 toolbox --log-podman --log-level=debug enter eos-admin

Caught in there:

17793 11:30:48.410877 <... read resumed>"Error: unable to start container \"e38ab775175d39a9bae2d6895934c6ee22bfe5b3a2ba92e27856f9f5a843b24d\": crun: cannot stat `/etc/profile.d/toolbox.sh`: No such file or directory: OCI runtime attempted to invoke a command that was not found\n", 32768) = 236

I'm not actually sure where those logs were going, but anyway, the file it wants is installed in eos7 at /usr/share/profile.d/toolbox.sh. Copying that to /etc/profile.d/toolbox.sh works around the issue.
Need to investigate and find a real fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions