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: Wed, 26 Nov 2014 10:55:03 +0100 Message-ID: <878uiywako.fsf@gnu.org> References: <8761e2wsjp.fsf@karetnikov.org> 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]:41621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtZKT-0002iz-Vr for bug-guix@gnu.org; Wed, 26 Nov 2014 04:56:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtZKN-0003XD-8f for bug-guix@gnu.org; Wed, 26 Nov 2014 04:56:09 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:48345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtZKN-0003Wp-4q for bug-guix@gnu.org; Wed, 26 Nov 2014 04:56:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XtZKM-0006J7-JO for bug-guix@gnu.org; Wed, 26 Nov 2014 04:56:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <8761e2wsjp.fsf@karetnikov.org> (Nikita Karetnikov's message of "Wed, 26 Nov 2014 07:26:50 +0400") 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: Nikita Karetnikov Cc: 19190@debbugs.gnu.org Thanks for the report. Let=E2=80=99s address the initrd/boot issue first. Nikita Karetnikov skribis: > After pressing the =E2=80=98F10=E2=80=99 key, I get a password prompt. Any message after entering the password prompt? > And after that, a bunch of warnings about =E2=80=98/dev/mapper/main=E2=80= =99: > > ext2fs_check_if_mount: Can=E2=80=99t check if filesystem is mounted due to > missing mtab file while determining whether /dev/mapper/main is mounted. > fsck.ext3: No such file or directory while trying to open > /dev/mapper/main > Possibly non-existent device? > =E2=80=98fsck.ext3=E2=80=99 exited with code 8 on /dev/mapper/main; spawn= ing REPL It looks like =E2=80=98cryptsetup open=E2=80=99 simply failed, and =E2=80= =98boot-system=E2=80=99 currently ignores that error, so it goes up to the file system check as shown above, which in turn fails and gets us to the debugger. Perhaps you could try running =E2=80=98cryptsetup=E2=80=99 by hand from the= REPL. That=E2=80=99s going to be a bit tedious; something like: (use-modules (srfi srfi-1) (ice-9 ftw)) (define cs (find (lambda (file) (string-contains file "cryptsetup")) (scandir "/gnu/store"))) (system* (string-append "/gnu/store/" cs "/bin/cryptsetup") "open" "--type" "luks" "/dev/whatever" "main") Then, please report the return value of =E2=80=98system*=E2=80=99, and check (file-exists? "/dev/mapper/main") Please also report any messages. Thanks in advance! Ludo=E2=80=99.