summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r--perl-install/fs.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 98ef8827b..f21e68dae 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -663,10 +663,7 @@ sub format_part {
################################################################################
sub set_loop {
my ($part) = @_;
- if (!$part->{real_device}) {
- eval { modules::load('loop') };
- $part->{real_device} = devices::set_loop(devices::make($part->{device}), $part->{encrypt_key}, $part->{options} =~ /encryption=(\w+)/);
- }
+ $part->{real_device} ||= devices::set_loop(devices::make($part->{device}), $part->{encrypt_key}, $part->{options} =~ /encryption=(\w+)/);
}
sub formatMount_part {