Unnamed repository
Go to file
Kairui Song 539bff4083 Append both nofail and x-systemd.before to kdump mount target
By this point, there is still an unresolved vfs kernel issue that blocks
systemd from mounting the dump target properly from time to time. To
prevent systemd from failing by mounting the dump target, we can add
nofail option to the kdump mount point.

But adding nofail will wipe out default dependency of the mount point,
see commit 94a7b43, so systemd randomize the order of calling kdump.sh
and mounting the dump target and lead to unexpected behavior.
However we can use x-systemd.before to ensure the mount is done
in right order.

In dracut-kdump-capture.service, we have "After=initrd.target",
and look at dracut.bootup.7, systems start processing of fstab by
initrd-fs.target, so set "After=initrd.target" could ensure the mount
is ready before pre-pivot and kdump-capture service.

Now with both nofail and x-systemd.before=initrd.target, systemd
will try to mount the dump target before calling kdump, and even if the
mount failed, kdump.sh will still be called and try to mount again. See
dump_fs function, which will try to mount if the target is not mounted.
Kdump will only fail if both mount attemp fails.

Else if the kdump target mount failed or unstable, systemd will directly
jump to kdump failure action, and kdump fails.

This should improve the robustness in general with no other risk.

Signed-off-by: Kairui Song <kasong@redhat.com>
Acked-by: Pingfan Liu <piliu@redhat.com>
2020-05-15 17:17:27 +08:00
.gitignore .gitignore: Update to make it more generic 2016-05-16 10:15:01 +08:00
98-kexec.rules Make udev reload rules quiet during bootup 2018-12-06 17:44:03 +08:00
98-kexec.rules.ppc64 kexec.rules: create dedicated udev rules for ppc64 2019-05-06 16:22:28 +08:00
README README: Add a README file 2014-04-02 10:45:36 +08:00
dracut-early-kdump-module-setup.sh earlykdump: warn when installed kernel version differs from dracut target 2019-01-10 18:16:58 +08:00
dracut-early-kdump.sh kdump-lib: switch to the kexec_file_load() syscall on x86_64 by default 2020-02-06 21:57:14 +08:00
dracut-kdump-capture.service dracut-kdump-capture.service: Use OnFailureJobMode instead of deprecated OnFailureIsolate 2019-06-14 09:44:09 +08:00
dracut-kdump-emergency.service kdump-emergency: fix "Transaction is destructive" emergency failure 2017-03-31 11:54:30 +08:00
dracut-kdump-emergency.target kdump-emergency: fix "Transaction is destructive" emergency failure 2017-03-31 11:54:30 +08:00
dracut-kdump-error-handler.service kdump-error-handler.service: Remove ExecStopPost 2019-11-28 17:46:00 +08:00
dracut-kdump-error-handler.sh Add failure_action as alias of default and make default obsolete 2019-01-22 17:57:53 +08:00
dracut-kdump-wait-for-target.sh Add a hook to wait for kdump target in initqueue 2020-01-29 08:12:45 +08:00
dracut-kdump.sh powerpc: enable the scripts to capture dump on POWERNV platform 2020-02-06 22:13:06 +08:00
dracut-module-setup.sh Add a new option 'rd.znet_ifname' in order to use it in udev rules 2020-04-27 18:21:22 +08:00
dracut-monitor_dd_progress monitor-dd-progress fix 2013-06-25 16:45:59 +08:00
early-kdump-howto.txt Improves the early-kdump-howto.txt document in several points: 2020-03-12 23:31:34 +08:00
fadump-howto.txt fadump: update fadump-howto.txt with some troubleshooting help 2020-05-11 14:08:14 +08:00
kdump-dep-generator.sh kdump-dep-generator: Add kdump service dependencies on the fly 2014-04-17 11:27:31 +08:00
kdump-in-cluster-environment.txt Add fence_kdump support for generic clusters 2014-04-03 14:43:06 +08:00
kdump-lib-initramfs.sh Fix the problem that kdump prints redundant / 2020-05-11 14:22:22 +08:00
kdump-lib.sh No longer treat atomic/silverblue specially 2020-03-30 22:06:37 +08:00
kdump-udev-throttler Make udev reload rules quiet during bootup 2018-12-06 17:44:03 +08:00
kdump.conf Add final_action option to kdump.conf 2019-01-22 17:58:24 +08:00
kdump.conf.5 Add final_action option to kdump.conf 2019-01-22 17:58:24 +08:00
kdump.service kdumpctl: Add reload support 2018-11-01 22:31:20 +08:00
kdump.sysconfig Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.aarch64 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.i386 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.ppc64 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.ppc64le Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.s390x Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.x86_64 kdump-lib: switch to the kexec_file_load() syscall on x86_64 by default 2020-02-06 21:57:14 +08:00
kdumpctl Remove is_dump_target_configured 2020-03-30 22:05:31 +08:00
kdumpctl.8 Update man page for new kdumpctl command: reload / rebuild 2019-04-05 02:02:58 +08:00
kexec-kdump-howto.txt kexec-kdump-howto.txt: Add notes about device dump 2019-09-02 17:06:16 +08:00
kexec-tools-2.0.20-Remove-duplicated-variable-declarations.patch Fix builing failure on Fedora 32 2020-01-29 14:43:47 +08:00
kexec-tools-2.0.20-eppic-Remove-duplicated-variable-declaration.patch Fix builing failure on Fedora 32 2020-01-29 14:43:47 +08:00
kexec-tools-2.0.20-fix-broken-multiboot2-buliding-for-i386.patch x86: Fix broken multiboot2 buliding for i386 2019-08-02 11:24:03 +08:00
kexec-tools-2.0.20-makedumpfile-Introduce-check-params-option.patch makedumpfile: Introduce --check-params option 2020-03-12 23:32:18 +08:00
kexec-tools-2.0.20-makedumpfile-Remove-duplicated-variable-declarations.patch Fix builing failure on Fedora 32 2020-01-29 14:43:47 +08:00
kexec-tools.spec Release 2.0.20-12 2020-04-02 01:48:46 +08:00
live-image-kdump-howto.txt Revert "kdumpctl: filter 'root' kernel parameter when running in live images" 2017-04-11 16:03:12 +08:00
mkdumprd Append both nofail and x-systemd.before to kdump mount target 2020-05-15 17:17:27 +08:00
mkdumprd.8 Remove comma which is redundant 2013-02-16 15:19:41 +08:00
sources Update makedumpfile to 1.6.7 2020-01-29 08:47:42 +08:00
zanata-notes.txt Add a notes for zanata process 2012-12-05 01:23:09 -05:00

README

Adding a patch to kexec-tools
=============================
There is a mailing list kexec@lists.fedoraproject.org where all the dicussion
related to fedora kexec-tools happen. All the patches are posted there for
inclusion and committed to kexec-tools after review.

So if you want your patches to be included in fedora kexec-tools package,
post these to kexec@lists.fedoraproject.org.

One can subscribe to list and browse through archives here.

https://admin.fedoraproject.org/mailman/listinfo/kexec