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