diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2009-04-02 10:25:12 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2009-04-02 10:25:12 +0000 |
commit | cfdc1f25ebfbb030f316ebf5aad360991e334783 (patch) | |
tree | 9ca3375b6a7e636b824aa41ac565409feb85ea4f /perl-install/devices.pm | |
parent | aa6cd73c6cca5e3d07d82e3221f6f77a92478b73 (diff) | |
download | drakx-cfdc1f25ebfbb030f316ebf5aad360991e334783.tar drakx-cfdc1f25ebfbb030f316ebf5aad360991e334783.tar.gz drakx-cfdc1f25ebfbb030f316ebf5aad360991e334783.tar.bz2 drakx-cfdc1f25ebfbb030f316ebf5aad360991e334783.tar.xz drakx-cfdc1f25ebfbb030f316ebf5aad360991e334783.zip |
fix crypto module names when arch is not i586 (#46814)
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r-- | perl-install/devices.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm index 09606f7ca..0423e3598 100644 --- a/perl-install/devices.pm +++ b/perl-install/devices.pm @@ -28,7 +28,7 @@ sub set_loop { my $dev = find_free_loop(); if ($o_encrypt_key && $o_encryption) { - eval { modules::load('cryptoloop', 'cbc', arch() =~ /i.86/ ? 'aes-i586' : 'aes') }; + eval { modules::load('cryptoloop', 'cbc', if_(arch() =~ /i.86/, 'aes-i586'), if_( arch() =~ /x86_64/, 'aes-x86_64'), 'aes_generic') }; my $cmd = "losetup -p 0 -e $o_encryption $dev $file"; log::l("calling $cmd"); open(my $F, "|$cmd"); |