diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-09-22 03:46:21 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-09-22 03:46:21 +0000 |
commit | 22724967131e7f327e7d7aa6974b58fb87ad56b3 (patch) | |
tree | d8306f7e68b7e7e0578e6699c4bdfc6b5d0a92d1 /perl-install | |
parent | b477ec20a4637d0abd860479bb0f72f9a138eb16 (diff) | |
download | drakx-22724967131e7f327e7d7aa6974b58fb87ad56b3.tar drakx-22724967131e7f327e7d7aa6974b58fb87ad56b3.tar.gz drakx-22724967131e7f327e7d7aa6974b58fb87ad56b3.tar.bz2 drakx-22724967131e7f327e7d7aa6974b58fb87ad56b3.tar.xz drakx-22724967131e7f327e7d7aa6974b58fb87ad56b3.zip |
call pvremove on every PVs when destroying a VG (to clear the LVM2 magic) (bugzilla #11579)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/lvm.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm index 23a069565..fae0a8c6b 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}; set_isFormatted($_, 0); } |