From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#19190: Cannot boot with encrypted root Date: Thu, 27 Nov 2014 11:12:39 +0100 Message-ID: <87tx1lostk.fsf@gnu.org> References: <1417003517.3640091.195610409.39CCFAAC@webmail.messagingengine.com> <87ioi2uevw.fsf@gnu.org> <1417053963.3820317.195899889.5AAEB90A@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xtw4T-0001qG-0A for bug-guix@gnu.org; Thu, 27 Nov 2014 05:13:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xtw4N-00010m-2J for bug-guix@gnu.org; Thu, 27 Nov 2014 05:13:08 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:49786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xtw4M-00010i-Uy for bug-guix@gnu.org; Thu, 27 Nov 2014 05:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xtw4M-00008a-FE for bug-guix@gnu.org; Thu, 27 Nov 2014 05:13:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <1417053963.3820317.195899889.5AAEB90A@webmail.messagingengine.com> (Duncan Keall's message of "Thu, 27 Nov 2014 15:06:03 +1300") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Duncan Keall Cc: 19190@debbugs.gnu.org Duncan Keall skribis: > Here are the configurations I have tested which all result in the errors > posted above: > > ("dm-crypt.ko" "aes-x86_64.ko" "crc32.ko" "pcbc.ko" "xcbc.ko" "sha256-s= sse3.ko") > ("dm-crypt.ko" "cryptd.ko" "aes-x86_64.ko" "crc32.ko" "pcbc.ko" "xcbc.k= o" "sha256-ssse3.ko") > ("dm-crypt.ko" "cryptd.ko" "crc32-pclmul.ko" "aes-x86_64.ko" "crc32.ko"= "pcbc.ko" "xcbc.ko" "sha256-ssse3.ko") > > I could also add "aesni-intel.ko" but it resulted in a different set of > kernel errors on boot: > > aesni_intel: Unknown symbol ablk_decrypt (err 0) > aesni_intel: Unknown symbol lrw_free_table (err 0) > aesni_intel: Unknown symbol ablk_set_key (err 0) > ... > ERROR: In procedure load-linux-module: Unknown error -1 Presumably that=E2=80=99s because one of its prerequisites hasn=E2=80=99t b= een loaded yet. The difficulty is that modules need to be listed in topological order: things that aesni_intel.ko depends on must appear before aesni_intel.ko. On my machine, I see: --8<---------------cut here---------------start------------->8--- $ lsmod|grep aes aesni_intel 165373 3=20 ablk_helper 13597 1 aesni_intel cryptd 20359 4 ghash_clmulni_intel,aesni_intel,ablk_helper lrw 13286 1 aesni_intel glue_helper 13990 1 aesni_intel aes_x86_64 17131 1 aesni_intel --8<---------------cut here---------------end--------------->8--- So the right order for these would be: cryptd aes_x86_64 ablk_helper lrw aesni_intel We=E2=80=99ll have to change the initrd build to figure that out automatica= lly, but in the meantime, we have to sort them by hand. Ludo=E2=80=99.