diff options
-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; } |