|
|
6edea0 |
From 4f43dd89a1f9c21f66d6b460c0ad1b271ee40492 Mon Sep 17 00:00:00 2001
|
|
|
6edea0 |
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
|
6edea0 |
Date: Mon, 25 May 2020 11:59:31 +0200
|
|
|
6edea0 |
Subject: [PATCH] Revert "[RHEL] network: default to network-legacy even in
|
|
|
6edea0 |
presence of nm-initrd-generator"
|
|
|
6edea0 |
|
|
|
6edea0 |
This reverts commit 7843bc52777683f6a4ef953d8dde7171ff3b911c.
|
|
|
6edea0 |
|
|
|
6edea0 |
This will cause that NM will be used in initrd on systems where it is installed.
|
|
|
6edea0 |
|
|
|
6edea0 |
Resolves: #1839706
|
|
|
6edea0 |
---
|
|
|
6edea0 |
modules.d/40network/module-setup.sh | 6 +++---
|
|
|
6edea0 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
6edea0 |
|
|
|
6edea0 |
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
|
|
|
6edea0 |
index bf252eb7..8e2a74a3 100755
|
|
|
6edea0 |
--- a/modules.d/40network/module-setup.sh
|
|
|
6edea0 |
+++ b/modules.d/40network/module-setup.sh
|
|
|
6edea0 |
@@ -8,9 +8,9 @@ check() {
|
|
|
6edea0 |
# called by dracut
|
|
|
6edea0 |
depends() {
|
|
|
6edea0 |
echo -n "kernel-network-modules "
|
|
|
6edea0 |
- # RHEL 8.1: Default to network-legacy unless the user chose
|
|
|
6edea0 |
- # network-manager manually
|
|
|
6edea0 |
- if ! dracut_module_included "network-manager" ; then
|
|
|
6edea0 |
+ if ! dracut_module_included "network-legacy" && [ -x "/usr/libexec/nm-initrd-generator" ] ; then
|
|
|
6edea0 |
+ echo "network-manager"
|
|
|
6edea0 |
+ else
|
|
|
6edea0 |
echo "network-legacy"
|
|
|
6edea0 |
fi
|
|
|
6edea0 |
return 0
|
|
|
6edea0 |
|