summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) = @_;