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

*: add kernel argument support #1178

Merged
merged 6 commits into from
Apr 29, 2021
Merged

*: add kernel argument support #1178

merged 6 commits into from
Apr 29, 2021

Conversation

arithx
Copy link
Contributor

@arithx arithx commented Mar 19, 2021

Add a new top-level field kernelArgument to the configuration specification, a new Ignition stage kargs, and distributor documentation.

Closes #1168

config/v3_3_experimental/schema/ignition.json Outdated Show resolved Hide resolved
config/v3_3_experimental/schema/ignition.json Outdated Show resolved Hide resolved
config/shared/errors/errors.go Outdated Show resolved Hide resolved
config/v3_3_experimental/types/karg.go Outdated Show resolved Hide resolved
internal/distro/distro.go Outdated Show resolved Hide resolved
examples/ignition-kargs Outdated Show resolved Hide resolved
examples/ignition-kargs Outdated Show resolved Hide resolved
examples/ignition-kargs Outdated Show resolved Hide resolved
examples/ignition-kargs Outdated Show resolved Hide resolved
@arithx
Copy link
Contributor Author

arithx commented Mar 26, 2021

Okay, updated for comments.

Additionally I went ahead and updated config/merge/merge_test to use the v3_3_experimental config (although I did leave in a v3_2 for the struct pointers merging).

@arithx arithx closed this Mar 26, 2021
@arithx arithx reopened this Mar 26, 2021
config/shared/errors/errors.go Outdated Show resolved Hide resolved
config/v3_3_experimental/schema/ignition.json Show resolved Hide resolved
config/v3_3_experimental/types/karg.go Outdated Show resolved Hide resolved
config/v3_3_experimental/types/karg.go Outdated Show resolved Hide resolved
docs/distributor-notes.md Outdated Show resolved Hide resolved
config/merge/merge_test.go Show resolved Hide resolved
config/merge/merge_test.go Outdated Show resolved Hide resolved
config/merge/merge_test.go Outdated Show resolved Hide resolved
config/merge/merge_test.go Show resolved Hide resolved
config/v3_3_experimental/types/karg.go Outdated Show resolved Hide resolved
@arithx
Copy link
Contributor Author

arithx commented Mar 31, 2021

⏫ Updated ⏫

Copy link
Contributor

@bgilbert bgilbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test that configs will be rejected if the same value is in shouldExist and shouldNotExist?

internal/exec/stages/kargs/kargs.go Outdated Show resolved Hide resolved
docs/distributor-notes.md Outdated Show resolved Hide resolved
docs/distributor-notes.md Outdated Show resolved Hide resolved
examples/ignition-kargs-helper Outdated Show resolved Hide resolved
examples/ignition-kargs-helper Show resolved Hide resolved
examples/ignition-kargs-helper Outdated Show resolved Hide resolved
examples/ignition-kargs-helper Outdated Show resolved Hide resolved
dracut/30ignition/ignition-kargs-helper.sh Outdated Show resolved Hide resolved
dracut/30ignition/ignition-kargs-helper.sh Outdated Show resolved Hide resolved
dracut/30ignition/module-setup.sh Outdated Show resolved Hide resolved
@arithx
Copy link
Contributor Author

arithx commented Apr 28, 2021

Updated, will still potentially need another update pending questions in #1178 (comment) & #1178 (comment)

dracut/30ignition/ignition-kargs-helper.sh Outdated Show resolved Hide resolved
examples/ignition-kargs-helper Outdated Show resolved Hide resolved
examples/ignition-kargs-helper Outdated Show resolved Hide resolved
examples/ignition-kargs-helper Outdated Show resolved Hide resolved
config/v3_3_experimental/types/kargs_test.go Outdated Show resolved Hide resolved
examples/ignition-kargs-helper Outdated Show resolved Hide resolved
Stephen Lowrie added 3 commits April 28, 2021 22:22
Adds a new top-level struct kernelArguments which has two fields,
shouldExist & shouldNotExist both of which accept lists of strings.
Adds a new stage kargs which will call out to an external binary to set
kernel arguments during the first boot. This is done in a separate stage
to allow the distribution to set kernel arguments before the disks stage
is run and optionally reboot.
@arithx
Copy link
Contributor Author

arithx commented Apr 29, 2021

Updated

examples/ignition-kargs-helper Outdated Show resolved Hide resolved
examples/ignition-kargs-helper Outdated Show resolved Hide resolved
examples/ignition-kargs-helper Outdated Show resolved Hide resolved
@arithx arithx force-pushed the ign_kargs branch 2 times, most recently from ce69013 to c4142c8 Compare April 29, 2021 05:05
Stephen Lowrie added 2 commits April 29, 2021 00:07
Adds a new kargs stage, as well as a binary implementation that prompts
the user to contact their distribution to implement a kargs helper
binary.
@arithx arithx enabled auto-merge April 29, 2021 05:10
@arithx arithx merged commit 20d5d69 into coreos:master Apr 29, 2021
sohankunkerkar added a commit to sohankunkerkar/butane that referenced this pull request Apr 29, 2021
Related to coreos/ignition#1178
This change adds support for providing a kernelArgument field
in the butane config.
sohankunkerkar added a commit to sohankunkerkar/butane that referenced this pull request Apr 29, 2021
Related to coreos/ignition#1178
This change adds support for providing a kernelArgument field
in the butane config.
sohankunkerkar added a commit to sohankunkerkar/butane that referenced this pull request Apr 30, 2021
Related to coreos/ignition#1178
This change adds support for providing a kernelArgument field
in the butane config.
@cgwalters cgwalters mentioned this pull request Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignition Kernel Argument Support
4 participants