-
Notifications
You must be signed in to change notification settings - Fork 65
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
Kraftfile cmd not added as kernel argument #1614
Comments
On further inspection, this seems to be overwritten when building the rootfs, here: https://github.com/unikraft/kraftkit/blob/staging/internal/cli/kraft/run/utils.go#L410
In my case, I have a Dockerfile with no CMD:
|
Hi @LucaSeri, this is a recent addition, towards having better compatibility with CLI > Kraftfile > Dockerfile
|
Thanks @nderjung. That all makes sense. Maybe this should be revisited since it seems the |
I've also looked a bit into this, because I had the same issues when running many applications from the catalog with kraft, including helloworld-c. Looking at the codebase, it seems that the I got a fix in #1622, but I'm not aware how to provide application arguments directly from the CLI (using |
does this still happen? 🤔 |
Describe the bug
When providing a cmd in the kraftfile, for an application running through the elfloader, the following error is generated:
[ 0.117956] ERR: [appelfloader] Program name missing (no argv[1])
.This is caused because the cmd is no longer passed as a kernel argument.
Steps to reproduce
Expected behavior
The cmd should be added.
Which architectures were you using or does this bug affect?
No response
Which operating system were you using or does this bug affect?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: