Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't open luks + lvm root after kernel update
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message

Joined: 05 Nov 2019
Posts: 10

PostPosted: Sat Mar 07, 2020 9:04 pm    Post subject: Can't open luks + lvm root after kernel update Reply with quote

I have a working installation with 4.19-97 kernel but I decided to clean my kernel while updating to latest version. Now booting I get stuck with following message:

>> Activating volume groups ...
!! Device dev/disk/by-id/d27c136d-9980-4305-a002-b0aa213ce4ba does not exist or access denied
!! The LUKS device UUID=d27c136d-9980-4305-a002-b0aa213ce4ba does not contain a LUKS header
!! Could not find the root in UUID=d27c136d-9980-4305-a002-b0aa213ce4ba

I'm running legacy bios with gpt lvm and luks1.
Commands I used to encrypt drive and build initramfs with genkernel
cryptsetup -s 512 --use-random luksFormat /dev/sda3
genkernel --luks --lvm initramfs

In the grub configuration I added the following:
GRUB_CMDLINE_LINUX="dolvm crypt_root=UUID=d27c136d-9980-4305-a002-b0aa213ce4ba root/dev/mapper/datavg-root"

file -s /dev/sda3
/dev/sda3: LUKS encrypted file, ver 1 [aes, xts-plain64, sha256] UUID: d27c136d-9980-4305-a002-b0aa213ce4ba


sda                 8:0    0 119.2G  0 disk
├─sda1              8:1    0     2M  0 part
├─sda2              8:2    0   256M  0 part  /boot
└─sda3              8:3    0   119G  0 part
  └─root          254:0    0   119G  0 crypt
    ├─datavg-root 254:1    0    25G  0 lvm   /
    ├─datavg-var  254:2    0    40G  0 lvm   /var
    └─datavg-home 254:3    0    54G  0 lvm   /home

/dev/sda2: LABEL="boot" UUID="0f091566-7455-488b-82a0-26e109c7dae4" BLOCK_SIZE="1024" TYPE="ext4" PARTLABEL="boot" PARTUUID="90893398-10d0-4c07-bdca-8595fa260aa5"
/dev/sda3: UUID="d27c136d-9980-4305-a002-b0aa213ce4ba" TYPE="crypto_LUKS" PARTLABEL="data" PARTUUID="20209b35-2fb7-4bd4-ac27-4d5f4697f7bd"
/dev/mapper/root: UUID="HPFhJI-UJtm-j04a-5GwE-X3yk-Q373-q21JH1" TYPE="LVM2_member"
/dev/mapper/datavg-root: UUID="8ad081f5-c53d-45e1-ba89-0641ef9ce592" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/datavg-var: UUID="ebc30133-5f09-44e0-9599-f3c6dab15e61" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/datavg-home: UUID="69ef9665-6d4a-49e1-9448-cb35bbbfd531" BLOCK_SIZE="4096" TYPE="ext4"
/dev/sda1: PARTLABEL="grub" PARTUUID="c4379188-47d3-4f51-887f-af927fd0f629

UUID=0f091566-7455-488b-82a0-26e109c7dae4       /boot   ext4    noauto,noatime  1 2
UUID=8ad081f5-c53d-45e1-ba89-0641ef9ce592       /       ext4    defaults        0 1
UUID=ebc30133-5f09-44e0-9599-f3c6dab15e61       /var    ext4    defaults        0 1
UUID=69ef9665-6d4a-49e1-9448-cb35bbbfd531       /home   ext4    defaults        0 1

I followed the wiki entries on lvm and luks to configure the kernel.

I noticed that the support for aes_x86_64 was removed in kernel 5.4 but as I understand the aes_ni should do the trick. The older kernel still works normally.

Here is my kernel configuration:

The old kernel still works so I guess there is still missing in my new kernel?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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