e83cdd
From 7843bc52777683f6a4ef953d8dde7171ff3b911c Mon Sep 17 00:00:00 2001
e83cdd
From: Lubomir Rintel <lkundrak@v3.sk>
e83cdd
Date: Wed, 24 Jul 2019 16:45:19 +0200
e83cdd
Subject: [PATCH] [RHEL] network: default to network-legacy even in presence of
e83cdd
 nm-initrd-generator
e83cdd
e83cdd
In RHEL 8.2, NetworkManager will ship with the nm-initrd-generator, but
e83cdd
before the install bits fall into place we want to default to network-legacy.
e83cdd
e83cdd
This unblocks the enablement of the NetworkManager bits and is intended
e83cdd
to be reverted later on.
e83cdd
---
e83cdd
 modules.d/40network/module-setup.sh | 6 +++---
e83cdd
 1 file changed, 3 insertions(+), 3 deletions(-)
e83cdd
e83cdd
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
e83cdd
index 8e2a74a3..bf252eb7 100755
e83cdd
--- a/modules.d/40network/module-setup.sh
e83cdd
+++ b/modules.d/40network/module-setup.sh
e83cdd
@@ -8,9 +8,9 @@ check() {
e83cdd
 # called by dracut
e83cdd
 depends() {
e83cdd
     echo -n "kernel-network-modules "
e83cdd
-    if ! dracut_module_included "network-legacy" && [ -x "/usr/libexec/nm-initrd-generator" ] ; then
e83cdd
-        echo "network-manager"
e83cdd
-    else
e83cdd
+    # RHEL 8.1: Default to network-legacy unless the user chose
e83cdd
+    # network-manager manually
e83cdd
+    if ! dracut_module_included "network-manager" ; then
e83cdd
         echo "network-legacy"
e83cdd
     fi
e83cdd
     return 0
e83cdd