summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-03-03 14:44:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-03-03 14:44:11 +0000
commit931c0095861d417b02c4e7a4f2c6f6e9ba342bac (patch)
treef2bd31151f46f40c33684a3d22548e601230647b /perl-install/devices.pm
parent9a2bd5ae48d13b720cf1a3085fe4f60ad6786c2c (diff)
downloaddrakx-backup-do-not-use-931c0095861d417b02c4e7a4f2c6f6e9ba342bac.tar
drakx-backup-do-not-use-931c0095861d417b02c4e7a4f2c6f6e9ba342bac.tar.gz
drakx-backup-do-not-use-931c0095861d417b02c4e7a4f2c6f6e9ba342bac.tar.bz2
drakx-backup-do-not-use-931c0095861d417b02c4e7a4f2c6f6e9ba342bac.tar.xz
drakx-backup-do-not-use-931c0095861d417b02c4e7a4f2c6f6e9ba342bac.zip
one now need cryptoloop and aes when using encryption (kernel 2.6)
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r--perl-install/devices.pm2
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");