-
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
Ignition Kernel Argument Support #752
Comments
This is somewhat tangential but we debated ostree kargs over in ostreedev/ostree#2217 but one thing I think we may need to try harder to handle is the "reset to default" case, perhaps in a CoreOS specific way. One idea here is Or (and this gets somewhat ostree-specific) we generalize some support for retaining the pristine booted deployment, which would also help for the #399 case. Anyways, either or both of these can be separate stages in rdcore. But it would also greatly help the MCO code because then the day 2 kargs support could always be "start from CoreOS defaults and add shouldExist kargs, validate shouldNotExist doesn't". |
Resetting the kernel arguments seems inherently risky, since any user-specified kargs may be necessary for the machine to boot successfully. (And in particular, we'd need to account for rootfs kargs added by |
If the user does a factory reset and doesn't provide those kargs again, that's their problem?
Right; rootmap-generated kargs blur this. I think if we capture the kargs after that's done but before Ignition that's what's desired.
I can't think of any, but the factory reset problem is fairly general. |
Ah, I hadn't understood that you meant "reset to default" only in the context of a full system reset. I think it could make sense for the helper program to save the original kargs somewhere if it's easy, but we could probably also defer that functionality until #399 is implemented.
Ignition kargs will run before rootmap — on an earlier boot, in fact. |
This is done now in coreos/ignition#1178 and coreos/fedora-coreos-config#938. |
Closed in coreos/fedora-coreos-config#938 |
The fix for this went into testing stream release |
The fix for this went into stable stream release |
Overview
Ignition is planning to add kernel argument support (coreos/ignition#1168) which expects that the distribution is both providing a binary which can perform the kernel argument modification as well as enabling the new stage at the desired ordering.
Binary
Ignition expects the following constraints from the binary:
Currently Fedora CoreOS is using
rdcore
to set some kernel arguments inside of the initrd, however I believe that 1 & 2 might be slightly different than the currentrdcore
functionality so we might need to make slight modifications there. Additionally we'll need to implement the detection of kernel arguments in the Ignition spec & perform the reboot.New Ignition Stage Ordering
The Ignition recommendation is to order the new stage some time after the
fetch
stage and before thedisks
stage. We'll also likely want to run beforeignition-ostree-transposefs-detect
/ignition-ostree-transposefs-save
to avoid potentially copying the root disk in memory before a reboot when kernel arguments are set.The text was updated successfully, but these errors were encountered: