[PATCH 1/2 V5] move some common functions from kdumpctl to kdump-lib.sh