Commit Graph

5 Commits

Author SHA1 Message Date
Coiby Xu
c08e98ca14 Allow kdump.service to access LUKS volume keys
Resolves: https://issues.redhat.com/browse/RHEL-124989
Conflict: Upstream has PrivateTmp=yes removed from kdump.service.

commit 280d4b6237b1f3bcad9cfba5e51b4f55d8b718c9
Author: Coiby Xu <coxu@redhat.com>
Date:   Mon Nov 3 09:26:21 2025 +0800

    Allow kdump.service to access LUKS volume keys

    Resoles: https://issues.redhat.com/browse/RHEL-124989

    Currently kdump.service fails to read LUKS volume keys,

        kdumpctl[4001]: Nothing to read on input.
        kdumpctl[3624]: kdump: Error: Could not unlock the LUKS device.
        kdumpctl[3624]: kdump: Failed to get logon key kdump-cryptsetup:vk-eed43d84-d79f-4b6d-8159-c859bb1915ee. Run 'kdumpctl restart' manually to start kdump.
        kdumpctl[3624]: kdump: kexec: failed to prepare for a LUKS target
        kdumpctl[3624]: kdump: Starting kdump: [FAILED]
        systemd[1]: kdump.service: Main process exited, code=exited, status=1/FAILURE
        systemd[1]: kdump.service: Failed with result 'exit-code'.
        systemd[1]: Failed to start kdump.service - Crash recovery kernel arming.

    Use KeyringMode=shared to link the user keyring of root to the session
    keyring so kdump.service can access the LUKS volume keys stored in
    root's user keyring. For more details on KeyringMode, man systemd.exec.

    Fixes: d9677e17 ("Support dumping to a LUKS-encrypted target")
    Signed-off-by: Coiby Xu <coxu@redhat.com>
2025-11-07 13:54:50 +08:00
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