1 |
commit: af2dcc0455d6601a7490b13cb6876fb5f6d62c62 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 25 13:40:02 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 25 13:40:02 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=af2dcc04 |
7 |
|
8 |
initrd.scripts: modules_scan(): Always load Virtio/HyperV modules |
9 |
|
10 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
11 |
|
12 |
defaults/initrd.scripts | 5 +++++ |
13 |
1 file changed, 5 insertions(+) |
14 |
|
15 |
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts |
16 |
index 053ac68..561788d 100644 |
17 |
--- a/defaults/initrd.scripts |
18 |
+++ b/defaults/initrd.scripts |
19 |
@@ -36,6 +36,11 @@ modules_scan() { |
20 |
if [ "${GK_HW_LOAD_ALL_MODULES}" = '1' ] |
21 |
then |
22 |
smart_loading= |
23 |
+ elif [ "${1}" = "virtio" ] || [ "${1}" = "hyperv" ] |
24 |
+ then |
25 |
+ # Virtio/HyperV modules group is special -- it's about |
26 |
+ # hypervisor support in general, not root block device |
27 |
+ smart_loading= |
28 |
elif [ "${1}" = "net" ] |
29 |
then |
30 |
# We already load network modules only when we need |