Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel variable to specify crypt key device
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
noqrax
n00b
n00b


Joined: 04 Oct 2016
Posts: 51

PostPosted: Wed May 16, 2018 1:49 am    Post subject: Genkernel variable to specify crypt key device Reply with quote

Hello, I'm trying to boot my encrypted rood drive, and it is almost done (actually system successfully mounts root device).

It is encrypted with luks (default settings), and contains lvm. To unlock root device I use initramfs made by genkernel with --lvm --luks flags.

I already specified crypt_root, root_key and real_root variables in grub.
When it boots, it scans all possible media to find specified key. But there is "root key device()" function in genkernel, it can be seen during the boot, if crypt_root points to device that not present in system. In that case you are able to manually specify roo, root key and root key device.
So how to set root key device in grub (variable name), and where it have to be put.
Maybe root_key was not specified properly i did it so: root_key=/key (may be there is way to specify both by same variable, e.g. root_key=/dev/sdd:/key).
My current order is: crypt_root root_key dolvm real_root.

Also after I've configured that, dmcrypt init script just skips to unlock my home partition. It uses luks by passphrase and must be unlocked at boot runlevel. Previously it worked fine.
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