diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-10-16 16:07:42 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-10-16 16:07:42 +0000 |
commit | 5e0c8768d1d3fd0e5434e265c386e154f65b6ebc (patch) | |
tree | 13ca931982d8fac8d7677e36e4e1784c9577ff05 | |
parent | b4fe444b64b82d57ba3f53f737cfb79fbc8eb1e7 (diff) | |
download | drakx-5e0c8768d1d3fd0e5434e265c386e154f65b6ebc.tar drakx-5e0c8768d1d3fd0e5434e265c386e154f65b6ebc.tar.gz drakx-5e0c8768d1d3fd0e5434e265c386e154f65b6ebc.tar.bz2 drakx-5e0c8768d1d3fd0e5434e265c386e154f65b6ebc.tar.xz drakx-5e0c8768d1d3fd0e5434e265c386e154f65b6ebc.zip |
extract detect_during_install
-rw-r--r-- | perl-install/lvm.pm | 10 |
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; } |