summaryrefslogtreecommitdiffstats
path: root/perl-install/lvm.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-16 16:07:42 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-16 16:07:42 +0000
commit5e0c8768d1d3fd0e5434e265c386e154f65b6ebc (patch)
tree13ca931982d8fac8d7677e36e4e1784c9577ff05 /perl-install/lvm.pm
parentb4fe444b64b82d57ba3f53f737cfb79fbc8eb1e7 (diff)
downloaddrakx-5e0c8768d1d3fd0e5434e265c386e154f65b6ebc.tar
drakx-5e0c8768d1d3fd0e5434e265c386e154f65b6ebc.tar.gz
drakx-5e0c8768d1d3fd0e5434e265c386e154f65b6ebc.tar.bz2
drakx-5e0c8768d1d3fd0e5434e265c386e154f65b6ebc.tar.xz
drakx-5e0c8768d1d3fd0e5434e265c386e154f65b6ebc.zip
extract detect_during_install
Diffstat (limited to 'perl-install/lvm.pm')
-rw-r--r--perl-install/lvm.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index 28a7cb41a..8f77ce06f 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -31,12 +31,14 @@ sub cylinder_size {
init() or log::l("lvm::init failed");
+sub detect_during_install() {
+ run_program::run('lvm2', 'vgscan');
+ run_program::run('lvm2', 'vgchange', '-a', 'y');
+}
+
sub init() {
devices::init_device_mapper();
- if ($::isInstall) {
- run_program::run('lvm2', 'vgscan');
- run_program::run('lvm2', 'vgchange', '-a', 'y');
- }
+ detect_during_install() if $::isInstall;
1;
}