summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-19 14:53:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-19 14:53:42 +0000
commited52e4f09e2822abb261b4c360979ce7c38fe348 (patch)
tree4ec495f140b2188152e2816b87ee91d7e53be69d /perl-install/diskdrake
parenta9042d2def58b5262e307f227432c27c45ff1d68 (diff)
downloaddrakx-ed52e4f09e2822abb261b4c360979ce7c38fe348.tar
drakx-ed52e4f09e2822abb261b4c360979ce7c38fe348.tar.gz
drakx-ed52e4f09e2822abb261b4c360979ce7c38fe348.tar.bz2
drakx-ed52e4f09e2822abb261b4c360979ce7c38fe348.tar.xz
drakx-ed52e4f09e2822abb261b4c360979ce7c38fe348.zip
- create lvm::add_to_VG() out of diskdrake::interactive::Add2LVM()
- lvm::check() now takes a $do_pkgs - help pvcreate (it may fail if it finds previous metadata on the MBR)
Diffstat (limited to 'perl-install/diskdrake')
-rw-r--r--perl-install/diskdrake/interactive.pm9
1 files changed, 2 insertions, 7 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index a23dcbe0c..2c306efae 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -872,13 +872,8 @@ sub Add2LVM {
push @$lvms, $lvm;
}
raid::make($all_hds->{raids}, $part) if isRAID($part);
- $part->{lvm} = $lvm->{VG_name};
- push @{$lvm->{disks}}, $part;
- delete $part->{mntpoint};
-
- lvm::check($in) if $::isStandalone;
- lvm::vg_add($part);
- lvm::update_size($lvm);
+ lvm::check($in->do_pkgs) if $::isStandalone;
+ lvm::add_to_VG($lvm, $part);
}
sub Unmount {
my ($_in, $_hd, $part) = @_;