summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/lvm.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index 8207b80f9..f223e3cfd 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -40,8 +40,10 @@ sub init() {
mkdir_p(dirname($control));
syscall_('mknod', $control, c::S_IFCHR() | 0600, makedev($major, $minor)) or die "mknod $control failed: $!";
}
- run_program::run('lvm2', 'vgscan') if !-e '/etc/lvmtab';
- run_program::run('lvm2', 'vgchange', '-a', 'y');
+ if ($::isInstall) {
+ run_program::run('lvm2', 'vgscan');
+ run_program::run('lvm2', 'vgchange', '-a', 'y');
+ }
1;
}