summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/dmcrypt.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-04-02 10:25:12 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-04-02 10:25:12 +0000
commitcfdc1f25ebfbb030f316ebf5aad360991e334783 (patch)
tree9ca3375b6a7e636b824aa41ac565409feb85ea4f /perl-install/fs/dmcrypt.pm
parentaa6cd73c6cca5e3d07d82e3221f6f77a92478b73 (diff)
downloaddrakx-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/fs/dmcrypt.pm')
-rw-r--r--perl-install/fs/dmcrypt.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/fs/dmcrypt.pm b/perl-install/fs/dmcrypt.pm
index b17a18eea..fccc9bf0a 100644
--- a/perl-install/fs/dmcrypt.pm
+++ b/perl-install/fs/dmcrypt.pm
@@ -16,7 +16,7 @@ sub _crypttab() { "$::prefix/etc/crypttab" }
sub init() {
whereis_binary('cryptsetup') or die "cryptsetup not installed";
- eval { modules::load('dm-crypt', 'cbc', 'sha256_generic', arch() =~ /i.86/ ? 'aes-i586' : 'aes') };
+ eval { modules::load('dm-crypt', 'cbc', 'sha256_generic', if_(arch() =~ /i.86/, 'aes-i586'), if_( arch() =~ /x86_64/, 'aes-x86_64'), 'aes_generic') };
devices::init_device_mapper();
1;
}