diff options
Diffstat (limited to 'tools/pvcreate.c')
-rw-r--r-- | tools/pvcreate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c index 3e12c5c7..b7932316 100644 --- a/tools/pvcreate.c +++ b/tools/pvcreate.c @@ -51,7 +51,8 @@ static int pvcreate_check(struct cmd_context *cmd, const char *name) * system. */ if (pv && is_orphan(pv)) { - (void) get_vgs(cmd, 1); + if (!scan_vgs_for_pvs(cmd)) + return_0; pv = pv_read(cmd, name, NULL, NULL, 0); } |