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

add PROGRAM parameter to eve-enter-container #4159

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

europaul
Copy link
Contributor

The script eve-enter-container calls internally nsenter, which defaults to calling $(SHELL) if no PROGRAM parameter is provided. And since the shim VM is built from alpine image, the default shell is /bin/ash. So unless the container running in the shim VM is also based on alpine, it won't have /bin/ash and the script will fail.

This commit adds a PROGRAM parameter to the script, so that the user can specify the shell (or another program) to be used when entering the container. If the parameter is not provided, the default is /bin/sh.

The script eve-enter-container calls internally nsenter, which Defaults
to calling $(SHELL) if no PROGRAM parameter is provided. And since the
shim VM is built from alpine image, the default shell is /bin/ash.
So unless the container running in the shim VM is also based on alpine,
it won't have /bin/ash and the script will fail.

This commit adds a PROGRAM parameter to the script, so that the user can
specify the shell (or another program) to be used when entering the
container. If the parameter is not provided, the default is /bin/sh.

Signed-off-by: Paul Gaiduk <paulg@zededa.com>
@milan-zededa milan-zededa merged commit 8c5b27a into lf-edge:master Aug 26, 2024
53 of 71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants