From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: bug#19190: Cannot boot with encrypted root Date: Wed, 26 Nov 2014 07:26:50 +0400 Message-ID: <8761e2wsjp.fsf@karetnikov.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtUD5-0007Vv-Cn for bug-guix@gnu.org; Tue, 25 Nov 2014 23:28:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtUCw-0008BZ-7Q for bug-guix@gnu.org; Tue, 25 Nov 2014 23:28:11 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:48308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtUCw-0008BT-4f for bug-guix@gnu.org; Tue, 25 Nov 2014 23:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XtUCv-0005Hh-Sc for bug-guix@gnu.org; Tue, 25 Nov 2014 23:28:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtUCQ-0007UD-Qd for bug-guix@gnu.org; Tue, 25 Nov 2014 23:27:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtUCH-0007yy-02 for bug-guix@gnu.org; Tue, 25 Nov 2014 23:27:30 -0500 Received: from li305-5.members.linode.com ([178.79.168.5]:37256 helo=cooksoni.karetnikov.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtUCG-0007yY-Qc for bug-guix@gnu.org; Tue, 25 Nov 2014 23:27:20 -0500 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: 19190@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable (Ludo suggested to report this as a bug, so this issue won=E2=80=99t get lo= st.) While booting, GRUB prints this error: error: file =E2=80=98/gnu/store/rz=E2=80=A6-linux-libre-3.17.3/bzImage=E2=80=99 not fou= nd. which is not surprising since the store is encrypted. I=E2=80=99ve tried putting these lines after the =E2=80=9Csetparams=E2=80= =9D line in the GRUB config (by hitting the =E2=80=98e=E2=80=99 key): insmod luks cryptomount hd0,gpt3 set root=3Dcrypto0 After pressing the =E2=80=98F10=E2=80=99 key, I get a 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; spawnin= g REPL In the REPL: scheme@(guile-user)> ,use (gnu build linux-boot) scheme@(guile-user)> (boot-system) [=E2=80=A6] ERROR: In procedure mount: ERROR: In procedure mount: Device or resource busy My config is shown below: (use-modules (gnu)) (define %linux-modules '( ;; cryptsetup/LUKS "dm-crypt.ko" "aes-x86_64.ko" "crc32.ko" "pcbc.ko" "xcbc.ko" "sha256-ss= se3.ko")) (operating-system (host-name "test") (timezone "Europe/Paris") (locale "en_US.UTF-8") (bootloader (grub-configuration (device "/dev/sda"))) (initrd (lambda (fs . args) (apply base-initrd fs #:extra-modules %linux-modules args))) (mapped-devices (list (mapped-device (source "/dev/sda3") (target "main") (type luks-device-mapping)))) (file-systems (cons* (file-system (device "/dev/mapper/main") (mount-point "/") (type "ext3")) (file-system (device "boot") (type 'label) (mount-point "/boot") (type "ext3")) %base-file-systems)) (users (list (user-account (name "test") (group "users") (supplementary-groups '("wheel" "audio" "video")) (home-directory "/home/test"))))) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJUdUh+AAoJEM+IQzI9IQ38glwQAIjpCx50uBQ/gw4y60WaIja4 iDE47RHemyoRz9JlWQx5xhsXcH/BCTMUkRexFB+WZjD20raU0Q5/0Aajuw+7wvr1 OUk+/G6y0+dKuxw7yZHbDWhTOelDpXYLrIou4dKsOi+Lu611I4dSqlDCnAVL8rso Jp/xPYOb913xgJ0FAeGPXuy+/6+baT4X1RbHIHy4ACsy7qyjjTzYUmVRozz7Qlg9 n+jwXVf/5pI08EF2bh9pjw5WjrJ1oumFOwjPhqiQFGWCbVKeWOGbVUeBg620J9dN g+OD9SFreL91NXTLrv7VVUts07ypEeGoJeofa7q/O1Bqv04F0wlb4FpR4t13+f69 RyHC7r8JU+b2rDF6QvDdl4CzjuGCtP1c7diUgZ1WYLKm8z1aeJFbDleN/sywhpYy JXajVYrfDZegXXs1jsef8CyeujTDDEhjNPANbGkx5fcq4pxeCeJ3r4x9G+XDQ2wR aW40aRgnURIl40QpAC+yc6nmusE7GSGijHs7PFTDj8lM1alUIQf6YBLpK2xmxTOn U1IGemOKio+kgK3GD9uuATktf8Zp78zw+yjYYw+5QxWozBjBIdoEiwJWzCaEo3UM BBev9R0aGeOiEnyKDKQHLNh5Vbf9i3wwSroMaofLLuyrU6DMG4fKbK8I3/ECyp1z a/zmgNkiAcMiwgT2yM1L =oS5t -----END PGP SIGNATURE----- --=-=-=--