Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

initramfs and dm-crypt

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
abduct
Apprentice
Apprentice
Posts: 222
Joined: Thu Mar 19, 2015 6:51 am

initramfs and dm-crypt

  • Quote

Post by abduct » Thu Sep 14, 2023 6:03 pm

Hi everyone

I recently updated my system and I have ran into some issues trying to boot into the new initramfs/kernel.

Previous kernels and initramfs work fine and are still usable.

I upgraded my kernel from 6.3.1 to 6.5.3 along with all the other package upgrades (openssl 3.0, dracut, etc) and I have a few issues during boot.

Originally at the end of the initramfs boot sequence I am asked for my passphrase to unlock and mount my disk.

Currently I get a message of "dm-crypt not found in /lib/modules/6.5.3-gentoo/" which I resolved via marking dm_crypt as a modules in my kernel, recompiling, and telling dracut to include the driver into the initramfs. The message is now gone.

After the reboot I am successfully asked for my passphrase, but after entering it I get the message "hash algorithm whirlpool not available"

To try to remedy this I marked whirlpool as a module in the kernel and told dracut to also include this driver, but this did not work and ended with the same message.

I am not sure , but this may be related? viewtopic-t-1164295-highlight-whirlpool.html

What steps can I take to debug this. I am not sure what software dracut is using to obtain whirlpool support and how I can add it back. I suppose my other option is to convert my encrypted disk to another hashing function?

At the end of the day I wish to convert dm_crypt and whirlpool back to built in modules and be able to unlock, mount, and boot into my new system, but this whirlpool issue has me hung up.

Many thanks!
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Fri Sep 15, 2023 9:46 am

Try one of the following

Code: Select all

USE="weak-ssl-ciphers" emerge -1av openssl
or
USE="-openssl gcrypt" emerge -1av cryptsetup
or
USE="-openssl kernel" emerge -1av cryptsetup
or
USE="-openssl nettle" emerge -1av cryptsetup

After each try plz rebuild the initramfs.
If any of the above works plz make it permanent via package.use.
:)
Top
abduct
Apprentice
Apprentice
Posts: 222
Joined: Thu Mar 19, 2015 6:51 am

  • Quote

Post by abduct » Sun Sep 17, 2023 6:40 pm

Thanks for the tip. Setting crypt setup to use the kernel backend fixed the whirlpool algo issue.

Not sure why the weak-ssl-ciphers didnt work with openssl, but of well at least I can login again.

Thanks
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic