Go to file
Coiby Xu d56516e8e5 Set up crashkernel value for osbuild
Resolves: https://issues.redhat.com/browse/RHEL-63071
Conflict: None

Upstream Status: git@github.com:rhkdump/kdump-utils.git

commit c196f5b9ebacbd60ef61ab20bfe399065e2de96b
Author: Coiby Xu <coxu@redhat.com>
Date:   Wed Oct 23 10:48:05 2024 +0800

    Set up crashkernel value for osbuild

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

    Currently the cloud image built by osbuild doesn't have crashkernel set
    up. Since kdumpctl will set up crashkernel only when kdump.service is
    enabled, it will fail if it's done in the following order
       -> kernel's %posttrans scriptlet
           -> 92-crashkernel.install
               -> kdumpctl _reset-crashkernel-for-installed_kernel
                   -> kdump-utils' %post scriptlet enables kdump.serivce

    This patch now let "systemd preset" kdump.service in the %post scriptlet
    instead. So when the kernel's %posttrans scriptlet is running, kdump.service
    is already enabled. %posttrans runs after all packages' %post
    scriptlets have been executed [1], so now crashkernel is set up in the
    following order,
        kdump-utils' post scriptlet which "systemd preset" kdump.service
            -> kernel's posttrans RPM scriptlet
                -> 92-crashkernel.install
                    -> kdumpctl _reset-crashkernel-for-installed_kernel

    And we expect users have now upgraded to kdump-utils so there
    is no need for the solution introduced in commit 5fe098fe.

    Note an agreement has been reached between kdump-utils and osbuild in
    https://bugzilla.redhat.com/show_bug.cgi?id=2024976 that kdump-utils
    will be responsible for setting up the crashkernel kernel parameter. And
    since kdump-utils will only set up crashkernel when kdump.service is
    enabled, we need to make sure kdump.service is enabled in the systemd
    preset.

    [1] https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#ordering

    Fixes: 5fe098fe ("Don't systemctl preset kdump when updating kexec-tools to kdump-utils")
    Signed-off-by: Coiby Xu <coxu@redhat.com>

Signed-off-by: Coiby Xu <coxu@redhat.com>
2024-11-01 15:48:52 +08:00
.gitignore Rebase to upstream v1.0.45 2024-10-11 10:23:31 +08:00
0001-Return-the-correct-exit-code-of-rebuild-initrd.patch Return the correct exit code of rebuild initrd 2024-10-21 10:59:13 +13:00
gating.yaml Enable gating test 2024-07-10 10:16:34 +08:00
kdump-utils.spec Set up crashkernel value for osbuild 2024-11-01 15:48:52 +08:00
README.md Initial import for CentOS Stream 10 2024-07-10 09:26:11 +08:00
sources Rebase to upstream v1.0.45 2024-10-11 10:23:31 +08:00

kdump-utils

The kdump-utils package