]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(kernel-network-modules): if running inside vm, include qemu-net
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 31 Oct 2024 22:31:39 +0000 (18:31 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Fri, 1 Nov 2024 10:45:48 +0000 (06:45 -0400)
This change also allows to make the network meta module simply just
make a decision on which netowkring module to use.

modules.d/40network/module-setup.sh
modules.d/90kernel-network-modules/module-setup.sh

index 38b7856926d4a618314589a311c47a590b21131b..101dfb3cb69949d00fadeaa0743253df8d9847bb 100755 (executable)
@@ -7,8 +7,6 @@ check() {
 
 # called by dracut
 depends() {
-    is_qemu_virtualized && echo -n "qemu-net "
-
     for module in network-manager systemd-networkd connman network-legacy; do
         if dracut_module_included "$module"; then
             echo "$module"
index 04d001bfa67f574644f07daa7f42c26d969c3495..ef5ed48217e04bfc3d8ea5da6f1926abdcd504d1 100755 (executable)
@@ -5,6 +5,11 @@ check() {
     return 255
 }
 
+# called by dracut
+depends() {
+    is_qemu_virtualized && echo -n "qemu-net "
+}
+
 # called by dracut
 installkernel() {
     # Include wired net drivers, excluding wireless