From cfdc1f25ebfbb030f316ebf5aad360991e334783 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 2 Apr 2009 10:25:12 +0000 Subject: fix crypto module names when arch is not i586 (#46814) --- perl-install/fs/dmcrypt.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/fs') 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; } -- cgit v1.2.1