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

90kernel-modules: don't install any block driver if not needed #664

Merged
merged 1 commit into from Jan 17, 2020

Conversation

ryncsn
Copy link
Contributor

@ryncsn ryncsn commented Oct 30, 2019

If hostonly mode is in use, and there isn't any block device included
as hostonly device, then the initramfs won't need any block driver.

Eg. for kdump built image, there could be only one nfs mount point,
or the initramfs may only execute some network operation then reboot.

In such case, skip block driver installation to save space and time.

Signed-off-by: Kairui Song kasong@redhat.com

If hostonly mode is in use, and there isn't any block device included
as hostonly device, then the initramfs won't need any block driver.

Eg. for kdump built image, there could be only one nfs mount point,
or the initramfs may only execute some network operation then reboot.

In such case, skip block driver installation to save space and time.

Signed-off-by: Kairui Song <kasong@redhat.com>
@ryncsn
Copy link
Contributor Author

ryncsn commented Nov 25, 2019

Hi, @haraldh any thought on this? This help reduces the memory usage for initramfs that will only access the network, which solve some kdump OOM issue.

@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@ryncsn
Copy link
Contributor Author

ryncsn commented Dec 25, 2019

Hi, I have tested it multiple times and so far it worked well, and it can help reduce memory usage in kdump, can any one help give some comments?

@haraldh haraldh merged commit f4ad2e5 into dracutdevs:master Jan 17, 2020
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.

None yet

3 participants