We collect all the kdump targets i.e. devices recognized under
kdump,
then improve kdump according to the type of the target. Currently we
have two: dump target and root target in case of "dump_to_rootfs".
If we know there is no crypt target, we can remove dracut "crypt"
module, we only add rd.lvm.lv=X regarding the lvm target to kdump.
If we know there is only network dumping(ssh/nfs), we can omit
some non-network modules like dm/lvm/multipath/crypt/iscsi/fcoe/etc.
If we know ..., we can omit ...
This series does two major things:
1)Patch 1~5 solve
https://bugzilla.redhat.com/1451717
2)Patch 6~8 reduce the initramfs size by omitting needless dracut modules.
Xunlei Pang (8):
kdump-lib.sh: fix improper get_block_dump_target()
kdump-lib.sh: introduce get_kdump_targets()
mkdumprd: change for_each_block_target() to use get_kdump_targets()
kdumpctl: use generated rd.lvm.lv=X
mkdumprd: omit crypt when there is no crypt kdump target
mkdumprd: omit dracut modules in case of no dm target
mkdumprd: omit dracut modules in case of network dumping
module-setup: fix 99kdumpbase network dependency
dracut-module-setup.sh | 2 +-
kdump-lib.sh | 111 +++++++++++++++++++++++++++++++++++++++++++------
kdumpctl | 69 ++++++++++++++++++------------
mkdumprd | 103 +++++++++++++++++++++++++--------------------
4 files changed, 200 insertions(+), 85 deletions(-)
--
1.8.3.1
_______________________________________________
kexec mailing list -- kexec(a)lists.fedoraproject.org
To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
For the series (with one patch updated)
Acked-by: Dave Young <dyoung(a)redhat.com>
Thanks
Dave