Skip to content

docs: clarify kernel drivers options in dracut.conf man page - #2449

Open
alemar99 wants to merge 3 commits into
dracut-ng:mainfrom
alemar99:patch-1
Open

docs: clarify kernel drivers options in dracut.conf man page#2449
alemar99 wants to merge 3 commits into
dracut-ng:mainfrom
alemar99:patch-1

Conversation

@alemar99

Copy link
Copy Markdown

As per https://github.com/dracut-ng/dracut/blob/main/dracut.sh#L2767-L2770 the kernel drivers specified with this configuration option are passed to instmods which allows the use of = to specify the entire submodule.

As per https://github.com/dracut-ng/dracut/blob/main/dracut.sh#L2767-L2770 the kernel drivers passed with this configuration option are passed to `instmods` which allows the use of `=` to specify the entire submodule
@alemar99
alemar99 requested a review from a team as a code owner May 19, 2026 12:48
devkontrol
devkontrol previously approved these changes May 19, 2026
Comment thread man/dracut.conf.5.adoc Outdated
Comment thread man/dracut.conf.5.adoc Outdated
@alemar99

alemar99 commented May 20, 2026

Copy link
Copy Markdown
Author

Based on your comments I've renamed kernel modules to kernel drivers (which also make more sense with the {add,force,omit}_drivers flags). Let me know if it's okay with you

@alemar99 alemar99 changed the title docs: clarify add_drivers option in dracut.conf man page docs: clarify kernel drivers options in dracut.conf man page May 20, 2026
Comment thread man/dracut.conf.5.adoc Outdated
"=drivers/net/team".

*force_drivers+=*" __<list of kernel modules>__ "::
*force_drivers+=*" __<kernel drivers>__ "::

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

force_drivers only takes kernel modules.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'll revert this

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

A little bit misleading that it says "See add_drivers above". I'll add a note that this only takes kernel modules.

Comment thread man/dracut.conf.5.adoc Outdated
Specify a space-separated list of kernel drivers not to add to the
initramfs. The kernel modules have to be specified without the ".ko" suffix.
The kernel subsystems have to be specified with an "=" as a prefix, like
"=drivers/net/team".

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

omit_drivers is passed as dracut-install -N. Are you sure that you can specify subsystems here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

No sorry I didn't double check where it was called

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants