Unnamed repository
Go to file
Lichen Liu 81bb7aff46 dracut-module-setup: Skip initrd-cleanup and initrd-parse-etc in kdump
Resolves: https://issues.redhat.com/browse/RHEL-25490
Upstream: Fedora
Conflict: None

commit 468336700d
Author: Lichen Liu <lichliu@redhat.com>
Date:   Mon Jan 22 15:59:09 2024 +0800

    dracut-module-setup: Skip initrd-cleanup and initrd-parse-etc in kdump

    When using multipath devices as the target for kdump, if user_friendly_name
    is also specified, devices default to names like "mpath*", e.g., mpatha.
    In dracut, we obtain a persistent device name via get_persistent_dev. However,
    dracut currently believes using /dev/mapper/mpath* could cause issues, thus
    alternatively names are used, here it's /dev/disk/by-uuid/<FS_UUID>.

    During the kdump boot progress, the /dev/disk/by-uuid/<FS_UUID> will exist as
    soon as one of the path devices exists, but it won't be usable by systemd,
    since multipathd will claim that device as a path device. Then multipathd will
    get stopped before it can create the multipath device.

    Without user_friendly_name, /dev/mapper/<WWID> is considered a persistent
    device name, avoiding the issue.

    The exit of multipathd is due to two dependencies in the current dracut module
    90multipath/multipathd.service, "Before=initrd-cleanup.service" and
    "Conflicts=initrd-cleanup.service".

    As per man 5 systemd.unit, if A.service has "Conflicts=B.service", starting
    B.service will stop A.service.

    This is useful during normal boot. However, we will never switch-root after
    capturing vmcore in kdump.

    We need to ensure that multipathd is not killed due to such dependency issue.
    Without modifying multipathd.service, we add ConditionPathExists=!/proc/vmcore
    to skip initrd-cleanup.service in kdump. This approach is beneficial as
    it avoid the potential termination of other services that conflict with
    initrd-cleanup.service. Also skip initrd-parse-etc.service as it will try to
    start initrd-cleanup.service. Both of these services are used for switch root,
    so they can be safely skipped in kdump.

    Suggested-by: Benjamin Marzinski <bmarzins@redhat.com>
    Suggested-by: Dave Young <dyoung@redhat.com>
    Signed-off-by: Lichen Liu <lichliu@redhat.com>
    Reviewed-by: Philipp Rudo <prudo@redhat.com>

Signed-off-by: Lichen Liu <lichliu@redhat.com>
2024-02-21 10:10:16 +08:00
.gitignore Release 2.0.26-1 2023-04-11 10:22:55 +08:00
60-kdump.install Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
98-kexec.rules Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
98-kexec.rules.ppc64 Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-early-kdump-module-setup.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-early-kdump.sh powerpc: update kdumpctl to load kernel signing key for fadump 2023-11-08 12:28:00 +00:00
dracut-fadump-init-fadump.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-fadump-module-setup.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-kdump-capture.service Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-kdump-emergency.service Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-kdump-emergency.target Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-kdump-error-handler.service Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-kdump-error-handler.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-kdump.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-module-setup.sh dracut-module-setup: Skip initrd-cleanup and initrd-parse-etc in kdump 2024-02-21 10:10:16 +08:00
dracut-monitor_dd_progress Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
early-kdump-howto.txt Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
fadump-howto.txt Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
gating.yaml Bring gating.yaml over from Brew dist-git 2023-03-10 10:47:36 -08:00
gen-kdump-conf.sh Auto sync2gitlab import of kexec-tools-2.0.25-3.el8.src.rpm 2022-12-13 06:13:47 +00:00
kdump-dep-generator.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump-in-cluster-environment.txt Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump-lib-initramfs.sh Auto sync2gitlab import of kexec-tools-2.0.25-5.el8.src.rpm 2023-01-20 10:15:07 +00:00
kdump-lib.sh powerpc: update kdumpctl to load kernel signing key for fadump 2023-11-08 12:28:00 +00:00
kdump-logger.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump-migrate-action.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump-restart.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump-udev-throttler Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump.conf.5 Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump.service Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump.sysconfig Auto sync2gitlab import of kexec-tools-2.0.24-3.el8.src.rpm 2022-06-16 04:49:01 +00:00
kdump.sysconfig.aarch64 Auto sync2gitlab import of kexec-tools-2.0.24-3.el8.src.rpm 2022-06-16 04:49:01 +00:00
kdump.sysconfig.i386 Auto sync2gitlab import of kexec-tools-2.0.24-3.el8.src.rpm 2022-06-16 04:49:01 +00:00
kdump.sysconfig.ppc64 Auto sync2gitlab import of kexec-tools-2.0.24-3.el8.src.rpm 2022-06-16 04:49:01 +00:00
kdump.sysconfig.ppc64le Auto sync2gitlab import of kexec-tools-2.0.24-3.el8.src.rpm 2022-06-16 04:49:01 +00:00
kdump.sysconfig.s390x sysconfig: add zfcp.allow_lun_scan to KDUMP_COMMANDLINE_REMOVE on s390 2023-03-15 18:24:55 +08:00
kdump.sysconfig.x86_64 Auto sync2gitlab import of kexec-tools-2.0.24-3.el8.src.rpm 2022-06-16 04:49:01 +00:00
kdumpctl kdumpctl: Only returns immediately after an error occurs in check_*_modified 2023-11-17 14:16:51 +08:00
kdumpctl.8 Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kexec-kdump-howto.txt Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kexec-tools-2.0.26-makedumpfile-sadump-fix-failure-of-reading-memory-when-5-le.patch sadump: fix failure of reading memory when 5-level paging is enabled 2023-04-12 11:25:10 +08:00
kexec-tools.spec Release 2.0.26-13 2024-02-02 16:03:49 +08:00
live-image-kdump-howto.txt Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
mkdumprd mkdumprd: Use the correct syntax to redirect the stderr to null 2023-08-10 17:25:44 +08:00
mkdumprd.8 Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
mkfadumprd Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
rhelonly-kexec-tools-2.0.16-koji-build-fail-workaround.patch Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
rhelonly-kexec-tools-2.0.18-eppic-fix-issues-with-hardening-flags.patch Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
rhelonly-kexec-tools-2.0.20-makedumpfile-arm64-Add-support-for-ARMv8.2-LVA-52-bi.patch Rebase makedumpfile to 1.7.2 2023-04-04 12:35:43 +08:00
sources Release 2.0.26-1 2023-04-11 10:22:55 +08:00
supported-kdump-targets.txt Add lvm thin provision to kdump supported-kdump-targets.txt 2023-08-28 13:53:38 +08:00