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