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".
E.g. 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.
E.g. 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.
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 kdump network dependency
dracut-module-setup.sh | 2 +-
kdump-lib.sh | 111 +++++++++++++++++++++++++++++++++++++++++++------
kdumpctl | 66 ++++++++++++++++++-----------
mkdumprd | 111 ++++++++++++++++++++++++++++---------------------
4 files changed, 204 insertions(+), 86 deletions(-)
--
1.8.3.1