commit:     af2dcc0455d6601a7490b13cb6876fb5f6d62c62
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 25 13:40:02 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Nov 25 13:40:02 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=af2dcc04

initrd.scripts: modules_scan(): Always load Virtio/HyperV modules

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 defaults/initrd.scripts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 053ac68..561788d 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -36,6 +36,11 @@ modules_scan() {
        if [ "${GK_HW_LOAD_ALL_MODULES}" = '1' ]
        then
                smart_loading=
+       elif [ "${1}" = "virtio" ] || [ "${1}" = "hyperv" ]
+       then
+               # Virtio/HyperV modules group is special -- it's about
+               # hypervisor support in general, not root block device
+               smart_loading=
        elif [ "${1}" = "net" ]
        then
                # We already load network modules only when we need

Reply via email to