diff options
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r-- | perl-install/devices.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm index 6c408a163..90358555c 100644 --- a/perl-install/devices.pm +++ b/perl-install/devices.pm @@ -51,9 +51,11 @@ sub find_free_loop() { find_free_loop_raw() } sub find_free_chloop() { find_free_loop_raw('chloop') } sub set_loop { my ($file, $o_encrypt_key, $o_encryption) = @_; + eval { modules::load('loop') }; my $dev = find_free_loop(); if ($o_encrypt_key && $o_encryption) { + eval { modules::load('cryptoloop', 'aes') }; my $cmd = "losetup -p 0 -e $o_encryption $dev $file"; log::l("calling $cmd"); open(my $F, "|$cmd"); |