Commit Graph

4 Commits

Author SHA1 Message Date
Pingfan Liu
7c77744dbb kdump.service: Replace ConditionKernelCommandLine with ExecCondition
Resolves: https://issues.redhat.com/browse/RHEL-61620
Upstream: kdump-utils

commit 6f32fab791746da3f075273e156bd70055db5d4c
Author: Sourabh Jain <sourabhjain@linux.ibm.com>
Date:   Fri Oct 4 20:09:35 2024 +0530

    kdump.service: Replace ConditionKernelCommandLine with ExecCondition

    Commit 0084806493 ("kdump.service: use ConditionKernelCommandLine=crashkernel")
    added a condition based on the crashkernel kernel command line parameter to
    control the start of the kdump service.

    While ConditionKernelCommandLine=crashkernel works well for kdump, it causes
    issues for fadump (specific to the PowerPC architecture), which also uses the
    same service unit. Unlike kdump, crashkernel kernel command-line is not
    mandatory for fadump.

    Since ConditionKernelCommandLine doesn't support evaluating multiple kernel
    command line parameters with dependencies between them, it has been replaced
    with ExecCondition to resolve this limitation.

    Now, if fadump is configured and the crashkernel parameter is NOT present in the
    kernel command line, kdump service will start.

    Fixes: #35
    Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>

Signed-off-by: Pingfan Liu <piliu@redhat.com>
2025-01-09 11:56:38 +08:00
Tao Liu
bcd5eb5a45 kdumpctl: Move temp file in get_kernel_size to global temp dir
Resolves: bz2169720
Upstream: src.fedoraproject.org/rpms/kexec-tools.git
Conflicts: None

commit ea00b7db43
Author: Philipp Rudo <prudo@redhat.com>
Date:   Fri May 5 17:14:41 2023 +0200

    kdumpctl: Move temp file in get_kernel_size to global temp dir

    Others will need to use a temporary files, too. In order to avoid
    potential clashes of multiple trap handlers move the local temp file
    into a global temp dir.

    While at it make sure that the trap handler returns the correct exit
    code.

    Signed-off-by: Philipp Rudo <prudo@redhat.com>
    Reviewed-by: Pingfan Liu <piliu@redhat.com>
    Reviewed-by: Coiby Xu <coxu@redhat.com>

Signed-off-by: Philipp Rudo <prudo@redhat.com>
Signed-off-by: Tao Liu <ltao@redhat.com>
2023-05-31 15:10:30 +08:00
DistroBaker
5cac7c3f96 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/kexec-tools.git#bfd06661e81465d077bac435c90b4082134adf19
2020-11-05 05:34:29 +00:00
Petr Šabata
f5bf4978d8 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/kexec-tools#041ba89902961b5490a7143d9596dc00d732cba0
2020-10-15 14:45:57 +02:00