Coiby Xu <coxu(a)redhat.com> 于2022年4月2日周六 11:24写道:
kexec-tools depends on dracut's 35network-manager module which will
call nm-initrd-generator. We don't want nm-initrd-generator to generate
connection profiles since we will copy them from 1st kernel to
kdump kernel initramfs. NetworkManager >= 1.35.2 won't generate connection
profiles if there's a connection dir with rd.neednet. For Fedora/RHEL,
this connection dir is /etc/NetworkManager/system-connections. For the
details, please refer to the NetworkManager commit 79885656d3
("initrd: don't add a connection if there's a connection dir with
rd.neednet") [1]. Before the release of NetworkManager >= 1.35.2, we
need to mask /usr/libexec/nm-initrd-generator.
[1]
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requ...
Signed-off-by: Coiby Xu <coxu(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 d6ad3ba..afeac3c 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -655,6 +655,11 @@ kdump_install_net() {
echo "rd.neednet" >>
"${initdir}/etc/cmdline.d/50neednet.conf"
fi
+ # Stop dracut 35network-manger to calling nm-initrd-generator.
+ # Note this line of code can be removed after NetworkManager >= 1.35.2
+ # gets released.
+ echo > "${initdir}/usr/libexec/nm-initrd-generator"
+
initramfs for local dump won't include this file, so maybe only mask
it only when it exists?
> # 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.34.1
> _______________________________________________
> kexec mailing list -- kexec(a)lists.fedoraproject.org
> To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
> Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.org
> Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure