From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: 19190@debbugs.gnu.org
Subject: bug#19190: Cannot boot with encrypted root
Date: Wed, 26 Nov 2014 10:55:03 +0100 [thread overview]
Message-ID: <878uiywako.fsf@gnu.org> (raw)
In-Reply-To: <8761e2wsjp.fsf@karetnikov.org> (Nikita Karetnikov's message of "Wed, 26 Nov 2014 07:26:50 +0400")
Thanks for the report. Let’s address the initrd/boot issue first.
Nikita Karetnikov <nikita@karetnikov.org> skribis:
> After pressing the ‘F10’ key, I get a password prompt.
Any message after entering the password prompt?
> And after that, a bunch of warnings about ‘/dev/mapper/main’:
>
> ext2fs_check_if_mount: Can’t 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?
> ‘fsck.ext3’ exited with code 8 on /dev/mapper/main; spawning REPL
It looks like ‘cryptsetup open’ simply failed, and ‘boot-system’
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 ‘cryptsetup’ by hand from the REPL.
That’s 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 ‘system*’, and check
(file-exists? "/dev/mapper/main")
Please also report any messages.
Thanks in advance!
Ludo’.
next prev parent reply other threads:[~2014-11-26 9:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-26 3:26 bug#19190: Cannot boot with encrypted root Nikita Karetnikov
2014-11-26 9:55 ` Ludovic Courtès [this message]
2014-11-26 12:41 ` Ludovic Courtès
2014-11-26 12:05 ` Duncan Keall
2014-11-26 16:04 ` Ludovic Courtès
2014-11-27 2:06 ` Duncan Keall
2014-11-27 10:12 ` Ludovic Courtès
2014-12-13 22:01 ` Ludovic Courtès
2014-12-15 10:49 ` Duncan Keall
2015-09-20 20:14 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878uiywako.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=19190@debbugs.gnu.org \
--cc=nikita@karetnikov.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).