all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juraj Hlista <juraj@juraj.me>
To: 48649@debbugs.gnu.org
Subject: bug#48649: Guix doesn't boot with LUKS root partition
Date: Tue, 25 May 2021 09:24:39 +0000	[thread overview]
Message-ID: <Ch1aeYT9yAXNErcfsR2GW7MQ2tuN-Q5xwJBSfaeJHp018scXt7aJS1ycqZykjhF2RSlf_JteX-uYsxpwJ9bPISZsi-HWpvvhYE6zFGv0vP0=@juraj.me> (raw)

[-- Attachment #1: Type: text/plain, Size: 1583 bytes --]

Hi,

I have Librem 14 (coreboot/seaBIOS) with Samsung 970 Evo Plus 2TB SSD. I installed Guix manually, the disk has MBR partition table and these partitions:

/dev/nvme0n1p1 - 1GB, Linux (83), bootable
/dev/nvme0n1p2 - 1.8TB, Linux (83)

The nvme0n1p1 (/boot) is unencrypted with ext4:
mkfs.ext4 -L system-boot /dev/nvme0n1p1

The nvme0n1p2 (/) is encrypted using LUKS and on top is ext4:
cryptsetup luksFormat /dev/nvme0n1p2
cryptsetup open /dev/nvme0n1p2 luks
mkfs.ext4 -L system-root /dev/mapper/luks

mount LABEL=system-root /mnt
mkdir /mnt/etc /mnt/boot
mount LABEL=system-boot /mnt/boot

herd start cow-store /mnt

The relevant part on /mnt/etc/config.scm:

(bootloader
  (bootloader-configuration
    (bootloader grub-bootloader)
    (target "/dev/nvme0n1")))
(mapped-devices
  (list (mapped-device
          (source (uuid "..."))
          (target "luks")
          (type luks-device-mapping))))
(file-systems
  (cons* (file-system
           (mount-point "/")
           (device "/dev/mapper/luks")
           (type "ext4")
           (dependencies mapped-devices))
         %base-file-systems)))

guix system init /mnt/etc/config.scm /mnt

Installation is without any errors. After rebooting grub asks for a password to decrypt LUKS partition, then gives me the boot menu. When I hit enter, the laptop gets stuck, I can't do ctrl+alt+f3,f4... only ctrl+alt+del works.

Attached are pictures from grub.

I also tried to use unencrypted root partition (basically the same as above, but without LUKS) and it works.

Thanks,
J

[-- Attachment #2: grub1.jpeg --]
[-- Type: image/jpeg, Size: 209666 bytes --]

[-- Attachment #3: grub2.jpeg --]
[-- Type: image/jpeg, Size: 259409 bytes --]

             reply	other threads:[~2021-05-25 11:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-25  9:24 Juraj Hlista [this message]
2021-05-25 11:19 ` bug#48649: Guix doesn't boot with LUKS root partition Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-05-25 12:12   ` Juraj Hlista
2021-05-25 17:19     ` Juraj Hlista
2021-05-26  9:23       ` Juraj Hlista
2021-06-08 17:24         ` Eric Brown
2021-06-08 21:39         ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-08-24  4:11           ` Maxim Cournoyer

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='Ch1aeYT9yAXNErcfsR2GW7MQ2tuN-Q5xwJBSfaeJHp018scXt7aJS1ycqZykjhF2RSlf_JteX-uYsxpwJ9bPISZsi-HWpvvhYE6zFGv0vP0=@juraj.me' \
    --to=juraj@juraj.me \
    --cc=48649@debbugs.gnu.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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.