summaryrefslogtreecommitdiffstats
path: root/perl-install/lvm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/lvm.pm')
-rw-r--r--perl-install/lvm.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index 0770bf2b9..63ba79b3d 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -116,6 +116,7 @@ sub vg_destroy {
lvm_cmd('vgchange', '-a', 'n', $lvm->{VG_name});
lvm_cmd_or_die('vgremove', $lvm->{VG_name});
foreach (@{$lvm->{disks}}) {
+ lvm_cmd_or_die('pvremove', devices::make($_->{device}));
delete $_->{lvm};
$_->{isFormatted} = 0;
$_->{notFormatted} = 1;