summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-08 14:40:48 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-08 14:40:48 +0000
commit0bb00d21b846810b09cd937decc969ca3fd414c9 (patch)
tree9def4c2e87cdd92cea45e493ccd54877a3b4c43a
parentc65347a3e7cacdea8e8babaa9171b954fbd6eff5 (diff)
downloaddrakx-0bb00d21b846810b09cd937decc969ca3fd414c9.tar
drakx-0bb00d21b846810b09cd937decc969ca3fd414c9.tar.gz
drakx-0bb00d21b846810b09cd937decc969ca3fd414c9.tar.bz2
drakx-0bb00d21b846810b09cd937decc969ca3fd414c9.tar.xz
drakx-0bb00d21b846810b09cd937decc969ca3fd414c9.zip
call pvremove on every PVs when destroying a VG (to clear the LVM2 magic) (bugzilla #11579)
-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;