summaryrefslogtreecommitdiffstats
path: root/perl-install/lvm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-03 21:32:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-03 21:32:25 +0000
commit167fc711a1c9190ba6deb54dd1d7d9fdf84122c3 (patch)
treed327fea0e08a9dd2408c5f3b558157d32863913c /perl-install/lvm.pm
parentedbb716165d7a2aacd508b0f44cf775ef606d033 (diff)
downloaddrakx-167fc711a1c9190ba6deb54dd1d7d9fdf84122c3.tar
drakx-167fc711a1c9190ba6deb54dd1d7d9fdf84122c3.tar.gz
drakx-167fc711a1c9190ba6deb54dd1d7d9fdf84122c3.tar.bz2
drakx-167fc711a1c9190ba6deb54dd1d7d9fdf84122c3.tar.xz
drakx-167fc711a1c9190ba6deb54dd1d7d9fdf84122c3.zip
small fixes for LVM
Diffstat (limited to 'perl-install/lvm.pm')
-rw-r--r--perl-install/lvm.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index 5ce2b3c03..c2b15e613 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -25,6 +25,7 @@ sub cylinder_size {
modules::load('lvm-mod');
run_program::run('vgscan') if !-e '/etc/lvmtab';
+run_program::run('vgchange', '-a', 'y');
sub get_vg {
my ($part) = @_;
@@ -47,7 +48,7 @@ sub get_lvs {
{ device => $_,
type => $type || 0x83,
isFormatted => $type,
- size => (split(':', `lvdisplay -c $_`))[6] }
+ size => (split(':', `lvdisplay -D -c $_`))[6] }
} map { /^LV Name\s+(\S+)/ ? $1 : () } `vgdisplay -v -D $lvm->{LVMname}`
];
}