This patch series mainly solves https://bugzilla.redhat.com/1451717
We collect all the kdump targets i.e. devices recognized under kdump, then improve kdump according to the type of the target.
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.
Xunlei Pang (7): 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 lvm target mkdumprd: omit dracut modules in case of network dumping
kdump-lib.sh | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---- kdumpctl | 52 ++++++++++++----------- mkdumprd | 106 +++++++++++++++++++++++---------------------- 3 files changed, 212 insertions(+), 83 deletions(-)