illiliti / tinyramfs

Tiny initramfs written in POSIX shell
GNU General Public License v3.0
102 stars 20 forks source link

Device not found when booting from encrypted LVM on LUKS #38

Closed ErnestNoga closed 1 year ago

ErnestNoga commented 1 year ago

I have this setup, on KISS Linux:

# lsblk 
NAME              MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
loop0               7:0    0   2.8G  1 loop  
nvme0n1           259:0    0 953.9G  0 disk  
├─nvme0n1p1       259:1    0   512M  0 part  /boot
└─nvme0n1p2       259:2    0 953.4G  0 part  
  └─cryptroot     253:0    0 953.4G  0 crypt 
    ├─laptop-swap 253:1    0    32G  0 lvm   [SWAP]
    ├─laptop-root 253:2    0   100G  0 lvm   /
    └─laptop-home 253:3    0 821.4G  0 lvm   /home

Here's my config, with uuid's redacted:

# cat /etc/tinyramfs/config 
luks_root=UUID=<...>
luks_name=cryptroot

lvm_group="laptop"

root=UUID=<...>
root_type="ext4"
compress="zstd -22 --ultra -T0"
hostonly=true
hooks="mdev,luks,lvm"

and whenever I try to boot I get hit by a message that the device cannot be found, it is after entering LUKS password, and I checked that device it specified was existing and correct, but after trying to mount it manually in a shell that initrd dropped me to it also said that device could not be found.

illiliti commented 1 year ago

Hi! Can you get output of blkid and post it here? And don't hide UUIDs please

ErnestNoga commented 1 year ago

I figured it out already. Kernel modules didn't work for some reason and I just removed and than rebuilt kernel and it worked after that.

illiliti commented 1 year ago

Glad you made it!