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