Upstream dracut now use network-manager module by default and since
upstream commit 3dcaa97, network-manager expects user to pass "rd.neednet"
to indicate network is required.
Signed-off-by: Kairui Song <kasong(a)redhat.com>
---
dracut-module-setup.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index 1794c2c..d3a674e 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -408,6 +408,11 @@ kdump_install_net() {
kdump_setup_dns "$_netdev"
+ if [ ! -f ${initdir}/etc/cmdline.d/50neednet.conf ]; then
+ # network-manager module needs this parameter
+ echo "rd.neednet" >> ${initdir}/etc/cmdline.d/50neednet.conf
+ fi
+
# Save netdev used for kdump as cmdline
# Whoever calling kdump_install_net() is setting up the default gateway,
# ie. bootdev/kdumpnic. So don't override the setting if calling
--
2.26.2