diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-10-14 15:54:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-10-14 15:54:40 +0000 |
commit | 336cf5500b7c8598763a31c0e042e7958b3962c0 (patch) | |
tree | 1f190ab94eefc819016bb1c94c179f19d042a887 | |
parent | 0f5eeb3e74ae8d053a267c96b0c86881aa1d398c (diff) | |
download | drakx-336cf5500b7c8598763a31c0e042e7958b3962c0.tar drakx-336cf5500b7c8598763a31c0e042e7958b3962c0.tar.gz drakx-336cf5500b7c8598763a31c0e042e7958b3962c0.tar.bz2 drakx-336cf5500b7c8598763a31c0e042e7958b3962c0.tar.xz drakx-336cf5500b7c8598763a31c0e042e7958b3962c0.zip |
no need to run vgscan and vgchange in standalone
(nb: /etc/lvmtab is no more used, so i also dropped that check)
-rw-r--r-- | perl-install/lvm.pm | 6 |
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; } |