-
Notifications
You must be signed in to change notification settings - Fork 59
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
Provide a standard way to change kernel command line options via Ignition #318
Comments
Thanks for the report. That said, I agree the UX here could be enhanced by:
|
|
coreos/rpm-ostree#1789 also redirects |
I added rpm-ostree kargs to cockpit's kernelopt.sh script, now this works great on FCOS. Thanks for your help! |
Just to xref this, for RHCOS (OpenShift) we support kernelArguments in MachineConfig. |
Going to reopen this since I think we do want to standardize an Ignition method for this for FCOS and ideally have that same method apply to RHCOS. |
For anyone who wants to change kargs today with FCOS, you'll basically need to write a systemd unit that runs |
Would this "standard way" be support for |
I think we'd probably want to optimize it so that we don't create a new deployment at all. So e.g. the user's Ignition config drops files in |
After some discussion today, we've decided that for CoreOS purposes, the BLS will still be the source of truth. In FCOS, there will be no new API or standard way for changing/setting kargs through OSTree. Setting/editing custom kernel arguments on first boot will be handled by Ignition. |
To remove the default
If you're running other units that might depend on this, you should change them to order |
The |
This will be addressed via Ignition's new kernel argument support (coreos/ignition#1168), which has been implemented in an experimental config spec but not yet stabilized. Leaving this open until the functionality is stabilized and documented. |
@bgilbert This feature has already landed in the latest stable release: https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/34.20210529.3.0/x86_64/commitmeta.json |
@sohankunkerkar Yep, and we've added documentation with a suitable warning. However, we can't unconditionally recommend the functionality until Ignition spec 3.3.0 is stabilized, since Ignition configs using the experimental spec will break at that point. |
v3.3.0 stabilization happened in ignition 2.11.0 which is in |
The fix for this went into testing stream release |
The fix for this went into stable stream release |
Docs will get updated soon when the new |
EDIT: Current solution: https://docs.fedoraproject.org/en-US/fedora-coreos/kernel-args/
On FCOS there is no official way how to change the kernel command line, e. g. the
mitigations=auto,nosmt
option. The only place where they occur is in /boot/loader.0/entries/ostree-{1,2}-fedora-coreos.conf, but that's not very predictable, nor is it clear whether modifying these will also apply to installing kernel updates. Right now, none of the standard mechanisms (grubby, /etc/default/grub, /boot/grub/grubenv) are available.Background: In Cockpit we have a UI for detecting/enabling/disabling the
nosmt
option. Changing a kernel command line option is annoyingly hard, we have quite an elaborate script for that.Could grubby be added to FCOS images, or if not, what's the recommended way to persist kernel options? Thanks!
The text was updated successfully, but these errors were encountered: