RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1918499 - kdump initrd generation fails if /boot not writable
Summary: kdump initrd generation fails if /boot not writable
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: kexec-tools
Version: 8.6
Hardware: Unspecified
OS: Linux
Target Milestone: rc
: 8.0
Assignee: ltao
QA Contact: Ruowen Qin
: 1971733 1971734 (view as bug list)
Depends On: 1965985
Blocks: 1971734 1971735 1976252
TreeView+ depends on / blocked
Reported: 2021-01-20 21:31 UTC by Kelvin Fan
Modified: 2022-04-15 02:20 UTC (History)
9 users (show)

Fixed In Version: kexec-tools-2.0.20-52.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1976252 (view as bug list)
Last Closed: 2021-11-09 19:40:13 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:4404 0 None None None 2021-11-09 19:40:42 UTC

Description Kelvin Fan 2021-01-20 21:31:37 UTC
Description of problem:
The /boot directory in RHEL CoreOS will soon be mounted read-only after version 4.7. Because of this, kdump will not be able to place the generated kdump initrd next to the kernel image in `KDUMP_BOOTDIR`. 
Possible solutions would be to make the location of the generated kdump initrd configurable, or to remount /boot writable whenever kdump needs to write to it. 

How reproducible:

Steps to Reproduce:
1. systemctl start kdump.service

Actual results:
kdump does not have permission to write to the /boot directory so it cannot build the kdump initramfs.

Expected results:
Crash recovery kernel arming succeeds.

Additional info:

Comment 3 ltao 2021-05-11 05:31:27 UTC
The v3 patch is ready for merge into rhel, however, there is a selinux problem [1] which need to be fixed first.

The initramfs can be created in /var/lib/kdump successfully by v3 patch, but the selinux policy refuses kexec-tools to load it,
thus fails the kdump arming. So this bug is blocked by bz1951323

[1] https://github.com/fedora-selinux/selinux-policy/issues/727

Comment 4 ltao 2021-05-31 08:57:34 UTC
On Fedora-Rawhide-20210529.n.0, patch v3 tested can work. May need to backport [1] to rhel8 first, to make patch v3 work on rhel8.

[1] https://github.com/fedora-selinux/selinux-policy/pull/732

Comment 7 Dave Young 2021-06-15 07:23:06 UTC
*** Bug 1971734 has been marked as a duplicate of this bug. ***

Comment 8 Dave Young 2021-06-15 07:27:18 UTC
*** Bug 1971733 has been marked as a duplicate of this bug. ***

Comment 13 Timothée Ravier 2021-06-22 14:58:24 UTC
Clearing needinfo as AFAIU Kelvin completed the request.

Comment 29 errata-xmlrpc 2021-11-09 19:40:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Low: kexec-tools security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.