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