73ad23
From 3b9b20d237b3ec939b1bf9dd065c875fee54fe63 Mon Sep 17 00:00:00 2001
73ad23
From: Kairui Song <kasong@redhat.com>
73ad23
Date: Fri, 12 Oct 2018 13:07:13 +0800
73ad23
Subject: [PATCH] 40network: Don't include 40network by default
73ad23
73ad23
commit 7347391 ('network-legacy: split off from network module')
73ad23
splitted network function to network-legacy and removed check() function
73ad23
of 40network. This caused 40network to be included even if network is
73ad23
not needed.
73ad23
73ad23
Signed-off-by: Kairui Song <kasong@redhat.com>
73ad23
73ad23
Cherry-picked from: 83cbc06ab91288e2d931b4f36935bfdb79a99b0e
73ad23
Resolves: #1639088
73ad23
---
73ad23
 modules.d/40network/module-setup.sh | 5 +++++
73ad23
 1 file changed, 5 insertions(+)
73ad23
73ad23
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
73ad23
index 57c0a45e..e8541636 100755
73ad23
--- a/modules.d/40network/module-setup.sh
73ad23
+++ b/modules.d/40network/module-setup.sh
73ad23
@@ -1,5 +1,10 @@
73ad23
 #!/bin/bash
73ad23
 
73ad23
+# called by dracut
73ad23
+check() {
73ad23
+    return 255
73ad23
+}
73ad23
+
73ad23
 # called by dracut
73ad23
 depends() {
73ad23
     echo -n "kernel-network-modules "
73ad23