summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-03-18 16:58:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-03-18 16:58:17 +0000
commit119e611ca6c8fa265f991246562b2737644c0dec (patch)
tree61906fd5464e8c5398877990e3d38f8c8c575b44
parentb8531241610832c114384c8fb37de82dfb1cc857 (diff)
downloaddrakx-119e611ca6c8fa265f991246562b2737644c0dec.tar
drakx-119e611ca6c8fa265f991246562b2737644c0dec.tar.gz
drakx-119e611ca6c8fa265f991246562b2737644c0dec.tar.bz2
drakx-119e611ca6c8fa265f991246562b2737644c0dec.tar.xz
drakx-119e611ca6c8fa265f991246562b2737644c0dec.zip
remove the lvm if lvm::vg_destroy() succeeds (bugzilla #14249)
-rw-r--r--perl-install/diskdrake/interactive.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index bead96915..e4b01a88f 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -876,8 +876,9 @@ sub RemoveFromRAID {
sub RemoveFromLVM {
my ($_in, $_hd, $part, $all_hds) = @_;
isPartOfLVM($part) or die;
- (my $lvm, $all_hds->{lvms}) = partition { $_->{VG_name} eq $part->{lvm} } @{$all_hds->{lvms}};
+ my ($lvm, $other_lvms) = partition { $_->{VG_name} eq $part->{lvm} } @{$all_hds->{lvms}};
lvm::vg_destroy($lvm->[0]);
+ $all_hds->{lvms} = $other_lvms;
}
sub ModifyRAID {
my ($in, $_hd, $part, $all_hds) = @_;