[RFC PATCH 6/8] mkdumprd: add a generic hook for the dump target