ab0e4d
From 6c0071bc72dbbdd2a958277618a9b2c64c6ee460 Mon Sep 17 00:00:00 2001
ab0e4d
From: Lukas Nykryn <lnykryn@redhat.com>
ab0e4d
Date: Thu, 2 Jul 2020 14:33:20 +0200
ab0e4d
Subject: [PATCH] spec: don't use NM on existing installations
ab0e4d
ab0e4d
Resolves: #1839706
ab0e4d
---
ab0e4d
 dracut.spec | 5 +++++
ab0e4d
 1 file changed, 5 insertions(+)
ab0e4d
ab0e4d
diff --git a/dracut.spec b/dracut.spec
ab0e4d
index c82c24f6..a8076c18 100644
ab0e4d
--- a/dracut.spec
ab0e4d
+++ b/dracut.spec
ab0e4d
@@ -481,4 +481,9 @@ install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kerne
ab0e4d
 %{_sysconfdir}/kernel/postinst.d/51-dracut-rescue-postinst.sh
ab0e4d
 %endif
ab0e4d
 
ab0e4d
+%triggerin network -- dracut-network < 049-83.git20200525
ab0e4d
+echo '# Since rhel-8.3 dracut moved to use NetworkManager
ab0e4d
+# On existing installations we want to preserve the old scripts
ab0e4d
+add_dracutmodules+=" network-legacy "' > /etc/dracut.conf.d/50-network-legacy.conf
ab0e4d
+
ab0e4d
 %changelog
ab0e4d