-
Notifications
You must be signed in to change notification settings - Fork 73
config/fcos/v1_7_exp/translate.go: added required kernel arguments to… #610
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this, and getting these changes in so quickly!
The changes make sense, I just have a few nits/questions.
The commit message exceeds 80 character limit, would you mind making it more concise to abide by that and expand on details in a new line under the summary if necessary?
Additionally can we add a test verifying the sugar's functionality in the translation tests?
docs/release-notes.md
Outdated
@@ -9,6 +9,7 @@ nav_order: 9 | |||
### Features | |||
|
|||
- Validate merged/replaced Ignition configs if they are local/inline _(all base specifications)_ | |||
- Added Kernel Argument rd.luks.keys in s390x layout sugar. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong tense, always present not past
"Expand existing CEX
sugar to include a required kernel arg"
config/fcos/v1_7_exp/translate.go
Outdated
// Add Kernel Arguments for CEX key file | ||
rendered.KernelArguments = types.KernelArguments{ | ||
ShouldExist: []types.KernelArgument{ | ||
types.KernelArgument("rd.luks.key=/etc/luks/cex.key"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be 100% sure, the path will always be the same? no chance it would vary between systems?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly, it's hardcoded here: https://github.com/coreos/fedora-coreos-config/pull/2986/files#diff-c526dfd1e153e193423394e0ed643fb22184d4d45167d1737754e8564c3f5becR141
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's too late to change this now. We should add validation that makes sure that the karg exists and is set to the correct value instead. |
As this would be validation, this does not block the 4.19 spec stabilisation and can happen later. |
100% agree |
Closing this one as we'll do validation instea: #611 |
I'm re-opening this one as we'll have to edit the OCP docs anyway to fix other things, so we might as well get this one in and re-do all the testing. |
Turns out we should not just add this as a karg for the openshift case as that would add an unnecessary reboot, so we need to special case the openshift translation. See: #613 |
I tried working on this a bit and the more it goes, the less I like it. So let's go back to what we had initially decided in #610 (comment) and do validation only: #611 |
Added the required
kernelArguments
to unlock the device in the s390x sugar.