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

init: allow force loading of extra modules via the kernel command-line #187

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

nmeum
Copy link
Contributor

@nmeum nmeum commented Sep 26, 2022

Fixes #186

Copy link
Owner

@anatol anatol left a comment

Choose a reason for hiding this comment

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

The feature looks good. Just a few questions to clarify.

Later I will add an integration test to check that the boot param works as intended.

init/cmdline.go Outdated Show resolved Hide resolved
@@ -129,6 +129,7 @@ Some parts of booster boot functionality can be modified with kernel boot parame
If debug level is enabled then kmsg throttling gets disabled automatically.
* `booster.debug` an obsolete option that is equivalent to `booster.log=debug,console`.
* `quiet` Set booster init verbosity to minimum. This option is ignored if `booster.debug` or `booster.log` is set.
* `modules` a comma-separated list of extra kernel modules which should be force loaded.
Copy link
Owner

Choose a reason for hiding this comment

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

what parameter name is used by other initramfs? I vaguely remember dracut likes to use rd. prefix for the parameters used by initramfs only.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

I propose to use the dracut's idea with rd. prefix for initrd-specific parameters. I am going to merge your change to wip and modify the parameter name.

Copy link
Owner

@anatol anatol Oct 1, 2022

Choose a reason for hiding this comment

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

Or maybe even call it rd.modules_force_load to match the name to config option that does the same.

@anatol anatol changed the base branch from master to wip September 30, 2022 22:50
@anatol anatol merged commit 969320c into anatol:wip Sep 30, 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.

Provide a way to force load modules with having to rebuild the image
2 participants