summaryrefslogtreecommitdiffstats
path: root/perl-install/lvm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/lvm.pm')
-rw-r--r--perl-install/lvm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index 6a6c250f9..e2eeb4cdc 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -29,8 +29,6 @@ sub cylinder_size {
$hd->{extent_size};
}
-init() or log::l("lvm::init failed");
-
sub detect_during_install() {
run_program::run('lvm2', 'vgscan');
run_program::run('lvm2', 'vgchange', '-a', 'y');
@@ -42,6 +40,8 @@ sub init() {
1;
}
+init() or log::l("lvm::init failed");
+
sub lvm_cmd {
if (my $r = run_program::run('lvm2', @_)) {
$r;