View previous topic :: View next topic |
Author |
Message |
nlsa8z6zoz7lyih3ap Guru
Joined: 25 Sep 2007 Posts: 388 Location: Canada
|
Posted: Wed Apr 21, 2021 11:24 pm Post subject: 5.10 gentoo-sources breaks luks encrypted root (Solved) |
|
|
My root is encrypted by Luks without LVM.
My custom initramfs asks for the password to unlock root, then does so and hands over to the normal boot sequence.
This worked fine with gentoo-sources-5.4.109
However upon upgrading to 5.10.27 I am still asked for the password on the correct device, but when I enter it I am met with this error message.
Quote: | device mapper: table :254:00 : crypt unknown target" |
Any advice?
PS I had no trouble with this upgrade on a different machine.
Last edited by nlsa8z6zoz7lyih3ap on Thu Apr 22, 2021 7:11 pm; edited 1 time in total |
|
Back to top |
|
|
joshIsThere n00b
Joined: 15 Mar 2021 Posts: 4
|
Posted: Thu Apr 22, 2021 4:54 pm Post subject: |
|
|
Hi,
make sure "Crypt target support" is built into the kernel, not as module. You can find more about it @ the wiki: https://wiki.gentoo.org/wiki/Dm-crypt |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21908
|
Posted: Thu Apr 22, 2021 6:38 pm Post subject: |
|
|
If you still need help, please pastebin the configuration of the kernel where it fails, and show us the full invocation of cryptsetup from the initramfs. |
|
Back to top |
|
|
nlsa8z6zoz7lyih3ap Guru
Joined: 25 Sep 2007 Posts: 388 Location: Canada
|
Posted: Thu Apr 22, 2021 7:10 pm Post subject: |
|
|
Many Thanks for the advice and offer of further help.
Crypt target support was compiled into the kernel, but thanks for the suggestion.
I have found a practical solution which works without me ever understanding what was wrong:
I took the kernel configuration from another computer that did have a working 5.10.27 kernel and an encrypted root
and made the modifications to enable it to work with the hardware of the computer that is the subject of this posting.
This works just fine. Thanks again to all. |
|
Back to top |
|
|
|