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

Introduce a --hostonly-nics option #957

Merged
merged 3 commits into from Oct 26, 2020
Merged

Conversation

ryncsn
Copy link
Contributor

@ryncsn ryncsn commented Oct 21, 2020

This pull request changes...

Changes

Introduce a --hostonly-nics param, with this param, if strict hostonly mode is used, it will only install driver for specified NIC.000p

Checklist

  • I have tested it locally
  • I have reviewed and updated any documentation if relevant
  • I am providing new code and test(s) for it

Fixes #

Currently when network is enabled, dracut will install all network
drivers that are currently loaded, but some time only one NIC is needed
for the initramfs.

So for strict hostonly mode, add a --hostonly-nics option, user can
provide a list of NICs to be enabled, and only needed drivers for
specifed NICs will be installed so save space.

Signed-off-by: Kairui Song <kasong@redhat.com>
These modules are installed in 95iscsi, no need to repeat here.
@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@ryncsn ryncsn changed the title Introduce a --hostonly-nics param Introduce a --hostonly-nics option Oct 21, 2020
@github-actions github-actions bot added kernel-network-modules Issues related to the kernel-network-modules module modules Issue tracker for all modules needs review labels Oct 21, 2020
@danimo
Copy link
Contributor

danimo commented Oct 21, 2020

Out of curiosity: What use case necessitates that patch?

@ryncsn
Copy link
Contributor Author

ryncsn commented Oct 22, 2020

Hi, it's mostly for kdump, and so are many other --hostonly-xxx options. Kdump uses dracut, but have a very limited memory, so it expects the initramfs to be as small as possible. In some case, where there are multiple NIC cards using different drivers, and kdump knows which NIC is needed, it can specify the needed NICs and drop all other unnecessary drivers.

@haraldh haraldh merged commit c69961b into dracutdevs:master Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel-network-modules Issues related to the kernel-network-modules module modules Issue tracker for all modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants