Comment 26 for bug 1979159

Revision history for this message
Benjamin Drung (bdrung) wrote : Re: Cannot unlock encrypted root after upgrading to 22.04

Thanks @gmazyland. I created a volume with --hash=ripemd160 and it failed to open in the initramfs (without legacy.so):

```
(initramfs) cryptsetup luksOpen /dev/vdb vdb
Enter passphrase for /dev/vdb:
Keyslot open failed.
```

Since that volume was not the root volume, the boot continued and it was correctly unlocked after the initramfs phase. So only user with a legacy hash algorithm on their root partition will have a problem.

Thanks to this test case, I can develop a better patch now.