Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot boot system from LUKS encrypted partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Pan Frytka
n00b
n00b


Joined: 23 Jun 2018
Posts: 5

PostPosted: Sun May 12, 2024 10:35 am    Post subject: Cannot boot system from LUKS encrypted partition Reply with quote

After a few years I've decided to come back to the Gentoo Land. In the meantime I think that a lot a things become ... complicated?

I'm struggling for few hours with a simple boot scenario, where I'm trying to boot up from a root on LVM, which is inside encrypted LUKS partition.

Code:

➜  ~ lsblk -o name,uuid
NAME                      UUID
nvme1n1                   
├─nvme1n1p1               A84A-289B
├─nvme1n1p2               a92c1ffa-0a85-46dc-963d-f2751b410ad7
└─nvme1n1p3               95d8c7f8-7744-4806-9e7f-448199f71be2
  └─Gentoo                4kd5Sc-yLf5-FeHO-wSbs-pyWn-3rPg-Vc6lxH
    ├─GentooVolGroup-root bc48d2d2-2282-48a7-ba3d-feb19abdcd73
    └─GentooVolGroup-home 98bfbdac-4aac-40ff-b16b-151a881a4d87
nvme0n1                   
├─nvme0n1p1               c77447d0-82e5-4f2b-a0b6-d0f3022839e8
└─nvme0n1p2               3bdfab60-e423-4c1d-97b0-a4d7aa92a7a2
  └─root                  zMzQya-PSoX-lvtF-oe09-F8vx-9d2j-F3vUf0
    ├─linux-root          1287edd0-f10a-417a-883c-cf3d0d0a7380
    └─linux-home          fe2ec30b-e257-4a1f-a050-b33d1b16db7b


So I'm trying to decrypt the "95d8c7f8-7744-4806-9e7f-448199f71be2" and boot with bc48d2d2-2282-48a7-ba3d-feb19abdcd73 as a root. The nvme0n1 contains my Arch installation.

Here is my /etc/dracut.conf file

Code:

add_dracutmodules+=" crypt dm lvm rootfs-block "
kernel_cmdline+=" root=UUID=bc48d2d2-2282-48a7-ba3d-feb19abdcd73 rd.luks.uuid=95d8c7f8-7744-4806-9e7f-448199f71be2 "


And my /etc/default/grub

Code:

GRUB_CMDLINE_LINUX="rd.luks.allow-discards root=UUID=bc48d2d2-2282-48a7-ba3d-feb19abdcd73 rd.luks.uuid=95d8c7f8-7744-4806-9e7f-448199f71be2"


During boot I've encountered this failure:

Code:

dracut-initqueue[478]: Failed to start systemd-cryptsetup@luks\x2d3bdfab60\x2de423....service: Unit systemd-cryptsetup@luks\x2d3bdfab60\x2de423....service not found


It seems that it is trying to start using "nvme0n1p2 3bdfab60-e423-4c1d-97b0-a4d7aa92a7a2", which does not make any sense

I've tried to use ugrd and... without success

Code:

out_file: /boot/initramfs-6.6.30-gentoo-dist.img
mknod_cpio: True
autodetect_init: True
init_target: /usr/lib/systemd/systemd
shebang: #!/bin/bash
_init_mount:
cryptsetup:
  root:
    uuid: bc48d2d2-2282-48a7-ba3d-feb19abdcd73
    retries: 5
cryptsetup_key_types:
  keyfile:
    key_command: cat {key_file} >
cryptsetup_retries: 5
cryptsetup_autoretry: True
cryptsetup_trim: False
kernel_version: 6.6.30-gentoo-dist

ERROR    | [dm-3] Unknown device mapper slave type: LVM2_member


Am I missing something?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum