]> git.ipfire.org Git - thirdparty/dracut.git/commit
90kernel-modules: don't install any block driver if not needed
authorKairui Song <kasong@redhat.com>
Tue, 29 Oct 2019 08:29:14 +0000 (16:29 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 17 Jan 2020 06:26:24 +0000 (07:26 +0100)
commitf4ad2e5c8964b6c7b50420299a0096bade6a40bd
tree6decb6d48e5c4f96140babc87ba3f6f8b7db84a1
parentcb86c560b0da465e06c18df12308cb3f30fa4803
90kernel-modules: don't install any block driver if not needed

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>
modules.d/90kernel-modules/module-setup.sh