Fixing cryptsetup in Initramfs Rejecting Correct LUKS Password

Ubuntu Version:
Ubuntu 24.04.2 LTS

Desktop Environment:
Gnome

Problem Description:

  • Using initramfs-tools (not dracut) to build the initramfs, because it is outdated.
  • cryptsetup-initramfs rejects the correct LUKS password during boot, forcing a drop to emergency shell.

Relevant System Information:
Hp laptop with a radeaon graphics card

What I’ve Tried:

  • Manually unlocking (cryptsetup open) in the shell works, confirming the password is correct.
  • Works fine under dracut, proving it’s not a LUKS/key issue—just an initramfs-tools problem