Unnamed repository
Go to file
Kairui Song 1c1159a586 kdumpctl: Detect block device driver change for initramfs rebuild
Previous we rebuild the initramfs when kenrel load module list changed,
but this is not very stable as some async services may load/unload
kernel modules, and cause unnecessary initramfs rebuild.

Instead, it's better to just check if the module required to dump to
the dump target is loaded or not, and rebuild if not loaded. This
avoids most false-positives, and ensure local target change is always
covered.

Currently only local fs dump target is covered, because this check
requires the dump target to be mounted when building the initramfs,
this guarantee that the module is in the loaded kernel module list,
else we may still get some false positive.

dracut-install could be leveraged to combine the modalias list with
kernel loaded module list as a more stable module list in the initramfs,
but upstream dracut change need to be done first.

Passed test on a KVM VM, changing the storage between SATA/USB/VirtIO
will trigger initramfs rebuild and didn't notice any false-positive.
Also passed test on my laptop with no false-positive.

Signed-off-by: Kairui Song <kasong@redhat.com>
Acked-by: Dave Young <dyoung@redhat.com>
2019-05-08 17:51:18 +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
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 earlykdump: generate symlink with stable name to kernel image and iniramfs 2019-01-10 18:11:49 +08:00
dracut-kdump-capture.service Introduce kdump capture service 2014-08-05 13:13:32 +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 Add failure_action as alias of default and make default obsolete 2019-01-22 17:57:53 +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.sh dracut-kdump: use POSIX shell syntax 2016-11-28 10:41:15 +08:00
dracut-module-setup.sh dracut-module-setup: Don't build squashed image if required modules are missing 2018-12-26 10:28:12 +08:00
dracut-monitor_dd_progress monitor-dd-progress fix 2013-06-25 16:45:59 +08:00
early-kdump-howto.txt earlykdump: Add a note of final_action option to avoid crash loop 2019-01-22 17:58:33 +08:00
fadump-howto.txt Add final_action option to kdump.conf 2019-01-22 17:58:24 +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 Add final_action option to kdump.conf 2019-01-22 17:58:24 +08:00
kdump-lib.sh Add failure_action as alias of default and make default obsolete 2019-01-22 17:57:53 +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 Remove kernel param "quiet" from kdump kernel cmdline 2015-12-11 15:18:31 +08:00
kdump.sysconfig.i386 Always drop nofail or nobootwait options 2018-08-14 10:34:45 +08:00
kdump.sysconfig.ppc64 Always drop nofail or nobootwait options 2018-08-14 10:34:45 +08:00
kdump.sysconfig.ppc64le Always drop nofail or nobootwait options 2018-08-14 10:34:45 +08:00
kdump.sysconfig.s390x Always drop nofail or nobootwait options 2018-08-14 10:34:45 +08:00
kdump.sysconfig.x86_64 Always drop nofail or nobootwait options 2018-08-14 10:34:45 +08:00
kdumpctl kdumpctl: Detect block device driver change for initramfs rebuild 2019-05-08 17:51:18 +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: Add note on setting correct value of kptr_restrict 2019-04-25 08:33:29 -04:00
kexec-tools-2.0.18-makedumpfiles-honor-the-CFLAGS-from-environment.patch Enable building with hardening flags 2019-02-22 17:09:07 +08:00
kexec-tools.spec kexec.rules: create dedicated udev rules for ppc64 2019-05-06 16:22:28 +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 mkdumprd: Improve the config reading logic 2019-03-29 10:52:39 +08:00
mkdumprd.8 Remove comma which is redundant 2013-02-16 15:19:41 +08:00
README README: Add a README file 2014-04-02 10:45:36 +08:00
sources Release 2.0.19-1 2019-03-22 17:06:27 +08:00
zanata-notes.txt Add a notes for zanata process 2012-12-05 01:23:09 -05:00

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