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

Support adding kernel commandline options #857

Open
jandubois opened this issue May 13, 2022 · 5 comments
Open

Support adding kernel commandline options #857

jandubois opened this issue May 13, 2022 · 5 comments
Labels
enhancement New feature or request expert

Comments

@jandubois
Copy link
Member

Description

#827 added a mechanism to specify additional kernel parameters for a specific image.

Unfortunately this does not allow providing additional parameters via an override.yaml or default.yaml file because image lists are simply concatenated; there is no way to modify attributes of an existing entry like we do for mounts and networks. There is also no obvious way how this can be made to work for images.

I would like to add a top-level attribute cmdline that will be appended in addition to any cmdline setting specified for a particular image. That would allow setting things globally, like:

cmdline: "vsyscall=emulate"

References:
microsoft/WSL#4694
https://gitlab.alpinelinux.org/alpine/aports/-/issues/6927#note_31075

@AkihiroSuda
Copy link
Member

Not a huge fan of adding the cmdline as a global attribute.

Wondering if we could rather specify this as an EFI var inside the firmware: section.
I don't know how we could pass the EFI var into the kernel, but I believe it is possible.

@AkihiroSuda AkihiroSuda added enhancement New feature or request expert labels May 14, 2022
@ripun
Copy link

ripun commented Sep 7, 2022

Hi Team
is there any update on this ?

@jerindjoy
Copy link

Hi Team, Any updates on this or how to enable vsyscall=emulate for Mac running Lima?

@ttc0419
Copy link

ttc0419 commented Jun 8, 2024

Really appreciate to have this feature

@ttc0419
Copy link

ttc0419 commented Jun 12, 2024

@AkihiroSuda @jandubois There seems two ways we can do it, if we could change the boot loader to LinuxBootLoader we can just use the command line parameter of the function. Otherwise, we could try to use EFI_STUB to boot the kernel, it seems alpine virt kernel is compiled with this option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request expert
Projects
None yet
Development

No branches or pull requests

5 participants