diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-11-17 10:21:57 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-11-17 10:21:57 +0000 |
commit | 06914d5fe2ce729b6c574f11ad1970aa0ef5aa7c (patch) | |
tree | 6034d30cd23cafdfda3e12ced3a99b04cee452dd /perl-install/diskdrake/interactive.pm | |
parent | d364267605870acfc90d7ac9bc2303bfea9e3178 (diff) | |
download | drakx-backup-do-not-use-06914d5fe2ce729b6c574f11ad1970aa0ef5aa7c.tar drakx-backup-do-not-use-06914d5fe2ce729b6c574f11ad1970aa0ef5aa7c.tar.gz drakx-backup-do-not-use-06914d5fe2ce729b6c574f11ad1970aa0ef5aa7c.tar.bz2 drakx-backup-do-not-use-06914d5fe2ce729b6c574f11ad1970aa0ef5aa7c.tar.xz drakx-backup-do-not-use-06914d5fe2ce729b6c574f11ad1970aa0ef5aa7c.zip |
really remove the VG from internal list of {lvms}, not on a copy
Diffstat (limited to 'perl-install/diskdrake/interactive.pm')
-rw-r--r-- | perl-install/diskdrake/interactive.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm index d06313b51..cbf1370ec 100644 --- a/perl-install/diskdrake/interactive.pm +++ b/perl-install/diskdrake/interactive.pm @@ -859,9 +859,8 @@ sub RemoveFromRAID { } sub RemoveFromLVM { my ($_in, $_hd, $part, $all_hds) = @_; - my $lvms = $all_hds->{lvms}; isPartOfLVM($part) or die; - (my $lvm, $lvms) = partition { $_->{VG_name} eq $part->{lvm} } @$lvms; + (my $lvm, $all_hds->{lvms}) = partition { $_->{VG_name} eq $part->{lvm} } @{$all_hds->{lvms}}; lvm::vg_destroy($lvm->[0]); } sub ModifyRAID { |