summaryrefslogtreecommitdiff
path: root/tools/pvck.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pvck.c')
-rw-r--r--tools/pvck.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/pvck.c b/tools/pvck.c
index a0f567eeb..ffcc1cfb0 100644
--- a/tools/pvck.c
+++ b/tools/pvck.c
@@ -19,6 +19,7 @@
#include "lib/format_text/layout.h"
#include "lib/mm/xlate.h"
#include "lib/misc/crc.h"
+#include "lib/device/device_id.h"
#define ONE_MB_IN_BYTES 1048576
@@ -3041,6 +3042,8 @@ int pvck(struct cmd_context *cmd, int argc, char **argv)
if (arg_is_set(cmd, dump_ARG)) {
pv_name = argv[0];
+ setup_device(cmd, pv_name);
+
dev = dev_cache_get(cmd, pv_name, cmd->filter);
if (!dev)