summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/diskdrake')
-rw-r--r--perl-install/diskdrake/interactive.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index de5880b60..55059faaa 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -961,11 +961,11 @@ sub detect_lvms_on_dmcrypt {
require fs::dmcrypt;
my (undef, $tmp_file) = File::Temp::mkstemp('/tmp/crypttab.XXXXXXX');
fs::dmcrypt::save_crypttab_($all_hds, $tmp_file);
+ require lvm;
+ lvm::detect_during_install();
$all_hds->{lvms} = [ fsedit::lvms($all_hds) ];
fs::dmcrypt::read_crypttab_($all_hds, $tmp_file);
rm_rf($tmp_file);
- require lvm;
- lvm::detect_during_install() if $::isInstall;
}
sub Add2RAID {