Compare commits

...

3 Commits

Author SHA1 Message Date
Tao Liu b90d7c1e28 Release 2.0.27-7 2024-01-03 02:36:40 +00:00
Coiby Xu 83698d84aa Explain the auto_reset_crashkernel option in more details
Resolves: https://issues.redhat.com/browse/RHEL-17451
Upstream: Fedora
Conflict: None

commit c752cbb2d393c9ae27475f184e2933ff65be50b1
Author: Coiby Xu <coxu@redhat.com>
Date:   Wed Dec 6 16:15:50 2023 +0800

    Explain the auto_reset_crashkernel option in more details

    Resolves: https://issues.redhat.com/browse/RHEL-17451

    Explain what factors affect the default crashkernel value and ask users
    to reset it manually if needed.

    Cc: Baoquan He <bhe@redhat.com>
    Cc: Jie Li <jieli@redhat.com>
    Acked-by: Baoquan He <bhe@redhat.com>
    Signed-off-by: Coiby Xu <coxu@redhat.com>

Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-01-02 10:11:33 +00:00
Coiby Xu c179f45e05 Use the same /etc/resolve.conf in kdump initrd if it's managed manually
Resolves: https://issues.redhat.com/browse/RHEL-11897
Upstream: Fedora
Conflict: None

commit 38d9990389d80039964668a4db9cc9c039eac68f
Author: Coiby Xu <coxu@redhat.com>
Date:   Tue Dec 26 11:17:29 2023 +0800

    Use the same /etc/resolve.conf in kdump initrd if it's managed manually

    Resolves: https://issues.redhat.com/browse/RHEL-11897

    Previously fix 0177e248 ("Use the same /etc/resolve.conf in kdump initrd
    if it's managed manually") is problematic,
       1) it generated .conf file unrecognized by NetowrkManager ;
       2) this .conf file was installed to current file system instead of to the kdump initrd;
       3) this incorrect .conf file prevented the starting of NetworkManager.

    This patch fixes the above issues and also suppresses a harmless warning
    when systemd-resolved.service doesn't exist,

        # systemctl -q is-enabled systemd-resolved
        Failed to get unit file state for systemd-resolved.service: No such file or directory

    Fixes: 0177e248 ("Use the same /etc/resolve.conf in kdump initrd if it's managed manually")
    Reported-by: Jie Li <jieli@redhat.com>
    Cc: Dave Young <dyoung@redhat.com>
    Reviewed-by: Dave Young <dyoung@redhat.com>
    Signed-off-by: Coiby Xu <coxu@redhat.com>

Signed-off-by: Coiby Xu <coxu@redhat.com>
2023-12-26 12:46:10 +08:00
4 changed files with 24 additions and 4 deletions

3
.kexec-tools.metadata Normal file
View File

@ -0,0 +1,3 @@
80ac3f5e77d3c79883edadf14428734db4720009 eppic-e8844d3.tar.gz
ed15f191adee22ab0721ba62af1cae67eb981670 kexec-tools-2.0.27.tar.xz
98cae2b1062871905795918c32b6d46ccd115074 makedumpfile-1.7.4.tar.gz

View File

@ -596,10 +596,10 @@ kdump_install_resolv_conf() {
#
# [1] https://bugzilla.gnome.org/show_bug.cgi?id=690404
# [2] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/manually-configuring-the-etc-resolv-conf-file_configuring-and-managing-networking
systemctl -q is-enabled systemd-resolved && return 0
systemctl -q is-enabled systemd-resolved 2> /dev/null && return 0
inst "$_resolv_conf"
if NetworkManager --print-config | grep -qs "^dns=none"; then
echo "[main]\ndns=none" > "$_nm_conf_dir"/90-dns-none.conf
printf "[main]\ndns=none\n" > "${initdir}/${_nm_conf_dir}"/90-dns-none.conf
fi
}

View File

@ -29,7 +29,20 @@ understand how this configuration file affects the behavior of kdump.
.B auto_reset_crashkernel <yes|no>
.RS
determine whether to reset kernel crashkernel parameter to the default value
or not when kexec-tools is updated or a new kernel is installed.
or not when kexec-tools is updated or a new kernel is installed. The default
crashkernel values are different for different architectures and also take the
following factors into consideration,
- AMD Secure Memory Encryption (SME) and Secure Encrypted Virtualization (SEV)
- Mellanox 5th generation network driver
- aarch64 64k kernel
- Firmware-assisted dump (FADump)
Since the kernel crasherkernel parameter will be only reset when kexec-tools is
updated or a new kernel is installed, you need to call "kdumpctl
reset-crashkernel [--kernel=path_to_kernel]" if you want to use the default
value set after having enabled features like SME/SEV for a specific kernel. And
you should also reboot the system for the new crashkernel value to take effect.
Also see kdumpctl(8).
.B raw <partition>
.RS

View File

@ -5,7 +5,7 @@
Name: kexec-tools
Version: 2.0.27
Release: 6%{?dist}
Release: 7%{?dist}
License: GPLv2
Summary: The kexec/kdump userspace component
@ -408,6 +408,10 @@ fi
%endif
%changelog
* Wed Jan 3 2024 Tao Liu <ltao@redhat.com> - 2.0.27-7
- Explain the auto_reset_crashkernel option in more details
- Use the same /etc/resolve.conf in kdump initrd if it's managed manually
* Wed Dec 20 2023 Tao Liu <ltao@redhat.com> - 2.0.27-6
- Use the same /etc/resolve.conf in kdump initrd if it's managed manually